.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px 24px;
}

.auth-shell {
    position: relative;
    width: 100%;
    max-width: 780px;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Image panel ─────────────────────────────────── */
.auth-img-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: left 0.5s cubic-bezier(.65, 0, .35, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
    color: #fff;
}

/* Login-page hero image: personal photo, replacing the previous stock
   auth-male.jpg (see git history). Rendered via background-image with
   background-size: cover (set on .auth-img-panel above) -- the CSS
   background equivalent of object-fit: cover for an <img> element: the
   photo fills the panel at every breakpoint with no distortion/whitespace,
   cropped as needed, identical visual contract to object-fit: cover.
   Kept as a background-image (not a new <img> tag) so the existing
   left/right sliding-panel layout, the text overlay stacking, and the
   mobile single-column behavor below are all completely unchanged -- only
   the image reference itself was swapped. The same dark linear-gradient
   overlay already used for the other auth photo is preserved unchanged
   for text readability/contrast (photo is naturally dark/warm-toned, so
   contrast for the gold/white/gray text above it holds the same as before). */
.auth-img-left  { left: 0; background-image: linear-gradient(160deg, rgba(26,18,0,0.4), rgba(26,18,0,0.85)), url('../pics/auth_app_cover_lokesh.jpg'); }
.auth-img-right { left: 50%; background-image: linear-gradient(160deg, rgba(26,18,0,0.4), rgba(26,18,0,0.85)), url('../pics/auth-female.jpg'); }

.auth-tag {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.auth-title-xl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}

.auth-title-xl span { color: var(--green); }

.auth-sub-sm {
    font-size: 13px;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 240px;
}

.auth-feat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.auth-feat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #ddd;
}

.auth-feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* ── Form panel ──────────────────────────────────── */
.auth-form-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--bg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: left 0.5s cubic-bezier(.65, 0, .35, 1), opacity 0.3s ease;
}

.auth-form-right { left: 50%; }
.auth-form-left  { left: 0; }

.auth-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 13px;
    color: var(--text-hint);
    margin-bottom: 20px;
}

.auth-error {
    background: var(--red-dim);
    border: 1px solid var(--red-border);
    color: var(--red);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 14px;
}

.auth-field {
    margin-bottom: 12px;
    position: relative;
}

.auth-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-hint);
}

.auth-field input {
    border: 1px solid var(--border);
    width: 100%;
    padding: 11px 12px 11px 36px;
    font-size: 13px;
}

.auth-forgot {
    text-align: right;
    margin-bottom: 16px;
}

.auth-forgot a {
    font-size: 12px;
    color: var(--green);
    text-decoration: none;
}

.auth-forgot a:hover { text-decoration: underline; }

.auth-cta {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.auth-cta:hover { background: #c62828; transform: scale(1.01); }
.auth-cta:active { transform: scale(0.98); }

.auth-switch-line {
    text-align: center;
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 16px;
}

.auth-switch-line button {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.auth-switch-line button:hover { text-decoration: underline; }

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 760px) {
    .auth-shell { height: auto; min-height: 560px; }
    .auth-img-panel,
    .auth-form-panel { width: 100%; padding: 28px 24px; }
    .auth-img-panel { position: relative; height: 220px; }
    .auth-form-panel { position: relative; left: 0 !important; opacity: 1 !important; pointer-events: auto !important; }
    .auth-img-left, .auth-img-right { left: 0; }

    /* Only one form panel shown at a time on mobile (stacked, not sliding).
       Driven by the SAME auth-img-left/auth-img-right class toggle
       setMode() (js/auth.js) already flips on every Sign up/Sign in click
       -- no JS changes needed. Bug fixed: #signupPanel used to be
       display:none unconditionally here, with nothing ever un-hiding it,
       so tapping "Sign up" changed the image panel but never revealed the
       signup form. */
    #signupPanel { display: none; }
    #authImgPanel.auth-img-right ~ #signupPanel { display: flex; }
    #authImgPanel.auth-img-right ~ #loginPanel { display: none; }
}