/* =================================
   YOGA WEBSITE AUTHENTICATION STYLES
   ================================= */

/* CSS Variables - Color Palette */
:root {
    --primary-color: #fe6c4d;              /* Your logo color - vibrant coral */
    --secondary-color: #fef8f6;            /* Soft peachy background */
    --text-color: #6b7280;                 /* Neutral gray for text */
    --accent-color: #2d3748;               /* Dark slate for contrast */
    --accent-secondary-color: #ff9f7a;     /* Lighter coral accent */
    --white-color: #ffffff;                /* Pure white */
    --divider-color: #fe6c4d1a;            /* Logo color with transparency */
    --dark-divider-color: #ffffff1a;       /* White with transparency */
    --error-color: #ef4444;                /* Red for errors */
    --success-color: #10b981;              /* Green for success */
    --warning-color: #f59e0b;              /* Amber for warnings */
    --default-font: "Sora", sans-serif;
    --accent-font: "Marcellus", serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--default-font);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff5f2 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container & Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="lotus" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="1" fill="%23fe6c4d" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23lotus)"/></svg>') repeat;
    z-index: -1;
}

.auth-card {
    background: var(--white-color);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(254, 108, 77, 0.1);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid var(--divider-color);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-secondary-color));
    border-radius: 24px;
    z-index: -1;
    opacity: 0.1;
}

/* Header Styles */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* position: relative; */
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* image ko zoom/crop karke fit karega */
}

.logo::before {
    /* content: '🧘‍♀️';
    font-size: 2rem; */
    filter: grayscale(1) brightness(0) invert(1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.auth-title {
    font-family: var(--accent-font);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.auth-subtitle {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Form Styles */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--divider-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--default-font);
    color: var(--accent-color);
    background: var(--white-color);
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 108, 77, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--default-font);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-secondary-color));
    color: var(--white-color);
    width: 100%;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 108, 77, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--accent-secondary-color);
}

/* Links & Navigation */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-secondary-color);
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--divider-color);
    z-index: -1;
}

.divider span {
    background: var(--white-color);
    padding: 0 1rem;
}

/* Error & Success Messages */
.error-message,
.success-message,
.warning-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.warning-message {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.error-message.show,
.success-message.show,
.warning-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Field Error Styles */
.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.25rem; 
}


/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Email Verification Specific Styles */
.verification-card {
    text-align: center;
}

.verification-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--success-color), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.verification-icon::before {
    content: '✓';
    font-size: 3rem;
    color: var(--white-color);
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo::before {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .auth-container {
        padding: 3rem 2rem;
    }
    
    .auth-card {
        padding: 4rem 3rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Print Styles */
@media print {
    .auth-container {
        background: none;
    }
    
    .auth-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}