/* ============================================
   AUTHENTICATION PAGES - PREMIUM GOLD THEME
   Matches Silvra brand colors with golden accents
   ============================================ */

/* Auth Container - Centered Split Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    font-size: 2rem;
}

.auth-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Success/Error Messages */
.success-message,
.error-message-box {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.error-message-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Split Form Layout */
.auth-form-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

.auth-left-section,
.auth-right-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Divider */
.auth-divider-vertical {
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #e5e5e5 20%, 
        #e5e5e5 80%, 
        transparent 100%);
    position: relative;
}

.auth-divider-vertical::before {
    content: 'OR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.5rem;
    color: #999;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-label.required::after {
    content: ' *';
    color: #dc2626;
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #D4AF37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input.error {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Input Wrapper (for password toggle) */
.input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #D4AF37;
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form Options (Remember Me & Forgot) */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    accent-color: #D4AF37;
}

.checkbox-label {
    font-size: 0.9375rem;
    color: #666;
    cursor: pointer;
}

.forgot-link {
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #8B7355;
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Primary Button - Golden */
.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941E 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #B8941E 0%, #8B7355 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Google Button */
.btn-google {
    background: white;
    color: #1a1a1a;
    border: 2px solid #e5e5e5;
}

.btn-google:hover {
    background: #fafafa;
    border-color: #D4AF37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.btn-google-large {
    padding: 1.125rem 1rem;
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Google Benefits */
.google-benefits {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.875rem;
}

.benefit-item svg {
    width: 1rem;
    height: 1rem;
    color: #16a34a;
    flex-shrink: 0;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-left: -0.625rem;
    margin-top: -0.625rem;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e5e5e5;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0;
}

.password-strength-fill.weak {
    width: 33%;
    background: #dc2626;
}

.password-strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-fill.strong {
    width: 100%;
    background: #16a34a;
}

.password-strength-text {
    font-size: 0.8125rem;
    color: #666;
}

/* Terms Wrapper */
.terms-wrapper {
    margin-bottom: 1.25rem;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
}

.terms-label a {
    color: #D4AF37;
    text-decoration: underline;
}

.terms-label a:hover {
    color: #8B7355;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: 0.9375rem;
}

.auth-footer-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer-link:hover {
    color: #8B7355;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #D4AF37;
    gap: 0.75rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid #16a34a;
}

.toast-notification.error {
    border-left: 4px solid #dc2626;
}

.toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .auth-form-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .auth-divider-vertical {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, 
            transparent 0%, 
            #e5e5e5 20%, 
            #e5e5e5 80%, 
            transparent 100%);
    }
    
    .auth-divider-vertical::before {
        left: 50%;
        top: 50%;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        border-radius: 16px;
    }
    
    .auth-form-split {
        padding: 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .toast-notification {
        right: 1rem;
        left: 1rem;
        top: auto;
        bottom: 2rem;
    }
}

/* Single Column Auth (Forgot/Reset Password) */
.auth-card.single-column {
    max-width: 480px;
    padding: 2.5rem 2rem;
}

.auth-card.single-column .auth-logo {
    margin-bottom: 2rem;
}

.auth-card.single-column .auth-footer {
    padding: 1.5rem 0 0 0;
    margin-top: 1.5rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.5s ease-out;
}