﻿/* ==========================================================================
   auth.css  -  login.aspx, signup.aspx, forgot-password.aspx
   Split-screen layout, card, divider, reset-success state.
   (Form controls, alerts, password toggle and toasts live in base.css
   because checkout / account / cart also use them.)
   ========================================================================== */

.auth-section {
    padding: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    align-items: stretch;
}

/* Left visual */
.auth-visual {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--ink);
}

    .auth-visual img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.75;
    }

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    color: #fff;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.2) 0%, rgba(26, 26, 26, 0.85) 100%);
}

    .auth-visual-overlay .section-eyebrow {
        color: var(--gold);
    }

    .auth-visual-overlay h2 {
        font-family: var(--serif);
        font-size: 30px;
        font-weight: 700;
        margin: 10px 0 14px;
        line-height: 1.25;
    }

    .auth-visual-overlay p {
        font-size: 14px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.85);
        max-width: 380px;
    }

/* Right form side */
.auth-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card-head {
    margin-bottom: 32px;
}

    .auth-card-head .section-eyebrow {
        display: block;
        margin-bottom: 10px;
    }

    .auth-card-head h1 {
        font-family: var(--serif);
        font-size: 30px;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 8px;
    }

    .auth-card-head p {
        font-size: 14px;
        color: var(--muted);
        line-height: 1.6;
    }

.form-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.password-hint-full {
    font-size: 11px;
    color: var(--muted, #777);
    margin-top: -10px;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 24px;
}

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 24px;
}

    .back-to-shop:hover {
        color: var(--red-primary);
    }

/* Forgot-password success state */
.reset-success {
    display: none;
    text-align: center;
}

    .reset-success.show {
        display: block;
    }

    .reset-success .success-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: #eaf7ee;
        color: #1e7a3f;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
    }

    .reset-success h2 {
        font-family: var(--serif);
        font-size: 24px;
        margin-bottom: 10px;
    }

    .reset-success p {
        font-size: 14px;
        color: var(--muted);
        line-height: 1.7;
    }

    .reset-success .btn {
        margin-top: 24px;
    }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-visual {
        min-height: 220px;
    }

    .auth-form-side {
        padding: 40px 24px;
    }
}
