/* ========================================
   Auth Pages - Mandala Background + Gold Accents
   ======================================== */

.auth-body {
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Mandala Background Pattern */
.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, #F5E6D3 100%);
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    position: relative;
    overflow: hidden;
}

/* Gold Accent Line at Top */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* Decorative Gold Corners */
.auth-card::after {
    content: '';
    position: absolute;
    top: 12px; left: 12px;
    width: 40px; height: 40px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    opacity: 0.2;
    border-radius: 2px 0 0 0;
}

.auth-corner-br {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 40px; height: 40px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.2;
    border-radius: 0 0 2px 0;
}

.auth-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-logo .logo-text {
    font-size: 2.2rem;
    margin-bottom: 4px;
    color: var(--maroon);
    justify-content: center;
}

.auth-logo .logo-text span { color: var(--gold); font-size: 2.5rem; }

.auth-tagline {
    color: var(--gold);
    font-size: 0.9rem;
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 1px;
}

/* Lotus Divider */
.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    opacity: 0.5;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.auth-divider::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.auth-divider .lotus-icon {
    margin: 0 12px;
    color: var(--gold);
    width: 24px;
    height: 24px;
}

.auth-title {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

.auth-form .form-group { margin-bottom: 1.2rem; }
.auth-form .form-input {
    border-color: rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
}
.auth-form .form-input:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(185, 69, 69, 0.08);
}

.auth-form .btn-primary {
    margin-top: 0.5rem;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--body-brown);
}

.auth-footer a { font-weight: 600; color: var(--maroon); }

/* Password */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}
.password-toggle:hover { color: var(--maroon); }

.password-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin-top: 8px;
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0%;
}
.strength-weak { background: var(--error); width: 25% !important; }
.strength-fair { background: orange; width: 50% !important; }
.strength-good { background: #F1C40F; width: 75% !important; }
.strength-strong { background: var(--success); width: 100% !important; }

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    color: var(--maroon);
    font-weight: 500;
}

/* Input with Icon */
.input-icon-wrapper { position: relative; }
.input-icon-wrapper .form-input { padding-left: 42px; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
    transition: color var(--transition);
}
.input-icon-wrapper .form-input:focus ~ .input-icon,
.input-icon-wrapper .form-input:focus + .input-icon { color: var(--maroon); }

/* Mandala SVG Background */
.mandala-auth-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.mandala-auth-bg svg {
    position: absolute;
    fill: currentColor;
}
.mandala-auth-bg .mandala-1 {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    color: var(--maroon);
    opacity: 0.03;
}
.mandala-auth-bg .mandala-2 {
    top: -160px; right: -160px;
    width: 500px; height: 500px;
    color: var(--gold);
    opacity: 0.03;
}
.mandala-auth-bg .mandala-3 {
    bottom: -200px; left: -200px;
    width: 600px; height: 600px;
    color: var(--maroon);
    opacity: 0.03;
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
    .auth-logo .logo-text { font-size: 1.8rem; }
}
