/**
 * Liza's — Auth pages (login.php, register.php)
 * Navy & champagne gold premium theme
 */

:root {
    --brand-navy: #0c1222;
    --brand-navy-mid: #151d32;
    --brand-gold: #c9a84c;
    --brand-gold-light: #e8d5a3;
    --brand-gold-dark: #a68832;
    --brand-cream: #faf8f4;
    --brand-ivory: #fffdf9;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --gradient-brand: linear-gradient(135deg, #c9a84c 0%, #e8d5a3 50%, #a68832 100%);
    --gradient-hero: linear-gradient(135deg, #151d32 0%, #0c1222 55%, #1a2744 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(12, 18, 34, 0.88) 0%, rgba(21, 29, 50, 0.75) 100%);
    --radius-lg: 18px;
    --shadow-premium: 0 12px 40px rgba(12, 18, 34, 0.15);
    --shadow-gold: 0 8px 24px rgba(201, 168, 76, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: var(--font-body);
    font-weight: 400;
    min-height: 100vh;
    color: var(--brand-navy);
    background: var(--brand-cream);
}

body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../../images/index.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

body.auth-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: -1;
}

/* Back link */
.auth-back {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(12, 18, 34, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.auth-back:hover {
    background: rgba(12, 18, 34, 0.8);
    border-color: var(--brand-gold);
    color: var(--brand-gold-light);
}

/* Split layout */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 100vh;
}

/* Brand panel (left) */
.auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
    color: inherit;
}

.auth-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 168, 76, 0.4);
    box-shadow: var(--shadow-gold);
}

.auth-logo-text .name {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--brand-gold-light);
    display: block;
    line-height: 1.15;
}

.auth-logo-text .tag {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.auth-brand h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.auth-brand h1 em {
    font-style: normal;
    color: var(--brand-gold-light);
}

.auth-brand .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.auth-features li i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold-light);
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Form panel (right) */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: -8px 0 40px rgba(12, 18, 34, 0.08);
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card-header {
    margin-bottom: 1.75rem;
}

.auth-card-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    font-size: 0.88rem;
    color: #64748b;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-alert-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #991b1b;
}

.auth-alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid rgba(39, 174, 96, 0.2);
    color: #065f46;
}

/* Form */
.auth-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.auth-form label .req {
    color: var(--brand-gold-dark);
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 2.75rem;
}

.toggle-pw {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.toggle-pw:hover {
    color: var(--brand-gold-dark);
}

.auth-forgot {
    text-align: right;
    margin: -0.25rem 0 1.1rem;
}

.auth-forgot a {
    color: var(--brand-gold-dark);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-forgot a:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

.auth-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    transform-origin: center;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    font-size: 0.88rem;
    color: #64748b;
}

.auth-switch a {
    color: var(--brand-gold-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* OTP input */
.otp-input {
    text-align: center;
    font-size: 1.5rem !important;
    letter-spacing: 0.35em;
    font-weight: 600;
    padding: 1rem !important;
}

.auth-email-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-top: 0.5rem;
    word-break: break-all;
}

.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--brand-gold-dark);
}

/* Mobile brand strip (hidden on desktop) */
.auth-brand-mobile {
    display: none;
    text-align: center;
    padding: 1.25rem 1rem 0;
}

.auth-brand-mobile .name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-gold-light);
}

/* Success popup (register) */
.auth-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem;
}

.auth-popup {
    background: var(--brand-ivory);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-premium);
    animation: popIn 0.35s ease;
}

.auth-popup > i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.auth-popup h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.auth-popup p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive */
@media (max-width: 960px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-brand-mobile {
        display: block;
    }

    .auth-panel {
        border-left: none;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 4rem;
    }

    .auth-back {
        top: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 3.5rem 1.25rem 2rem;
    }

    .auth-recaptcha {
        transform: scale(0.92);
    }
}
