/* Auth pages (login, etc.) — split layout; nav uses app.css / omitted via hideHeader */

body.auth-page {
    --panel: #16241c;
    --panel-2: #0e1a14;
    --auth-panel-height: 448px;
    --auth-feed-height: 300px;
    --auth-chat-height: 388px;
    --auth-chat-body-height: 340px;
    min-height: 100vh;
}

html:has(body.auth-page),
body.auth-page {
    overflow-x: clip;
}

.auth-page a {
    color: var(--green-deep);
    text-decoration: none;
}

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

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 100vh;
}

.auth-split > .stage,
.auth-split > .form-side {
    min-width: 0;
}

@media (min-width: 981px) {
    .auth-split > .stage,
    .auth-split > .form-side {
        min-height: 100vh;
    }
}

@media (max-width: 980px) {
    .auth-split {
        grid-template-columns: 1fr;
    }
}

/* LEFT: activity stage */
.stage {
    position: relative;
    background: linear-gradient(160deg, var(--panel), var(--panel-2));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(28px, 4vw, 72px);
    color: #fff;
}

@media (max-width: 980px) {
    .stage {
        padding: 48px 28px 64px;
        min-height: 520px;
    }

    .register-split .stage {
        min-height: 540px;
    }
}

.stage::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(61, 190, 154, 0.22), transparent 70%);
    top: -120px;
    right: -100px;
    border-radius: 50%;
}

.stage::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(61, 190, 154, 0.12), transparent 70%);
    bottom: -100px;
    left: -80px;
    border-radius: 50%;
}

.stage-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.stage-brand {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.stage-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--green-bright);
    margin-bottom: 18px;
}

.stage-eyebrow .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-bright);
    animation: auth-pulse 2s infinite;
}

@keyframes auth-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(70, 209, 171, 0.5);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 7px rgba(70, 209, 171, 0);
    }
}

.stage h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.18;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 10px;
}

.stage h2 em {
    font-style: normal;
    color: var(--green-bright);
}

.stage .sub {
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
    margin-bottom: 30px;
}

.panel {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: var(--auth-panel-height);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    contain: layout style;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-head .t {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--green-bright);
}

.live .blip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-bright);
    animation: auth-pulse 1.6s infinite;
}

.total {
    flex-shrink: 0;
    padding: 22px 20px 8px;
}

.total .lbl {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    margin-bottom: 6px;
}

.total .amt {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.total .amt span {
    color: var(--green-bright);
    display: inline-block;
    min-width: 9ch;
}

.total .sub2 {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    min-height: 1.25em;
}

.feed {
    flex: 1 1 auto;
    min-height: 0;
    height: var(--auth-feed-height);
    padding: 8px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
}

.feed .row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s, transform 0.5s, background 0.3s;
}

.feed .row.in {
    opacity: 1;
    transform: none;
}

.feed .row.flash {
    background: rgba(61, 190, 154, 0.14);
    border-color: rgba(61, 190, 154, 0.3);
}

.feed .row .av {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.feed .row .meta {
    min-width: 0;
}

.feed .row .meta b {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed .row .meta small {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.feed .row .amt2 {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--green-bright);
    white-space: nowrap;
}

.stage-foot {
    margin-top: 34px;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.sf {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf .c {
    color: var(--green-bright);
    font-weight: 700;
}

/* RIGHT: form */
.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(28px, 4vw, 64px);
    position: relative;
    overflow: hidden;
}

.form-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(61, 190, 154, 0.08), transparent 70%);
    top: -100px;
    right: -120px;
    border-radius: 50%;
    pointer-events: none;
}

.form-wrap {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.form-back {
    font-size: 0.86rem;
    color: var(--slate-faint);
    margin-bottom: 30px;
    display: inline-block;
}

.form-back:hover {
    color: var(--green-deep);
    text-decoration: none;
}

.form-wrap h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.8px;
    color: var(--slate);
    margin-bottom: 8px;
}

.form-wrap .lede {
    color: var(--slate-soft);
    font-size: 0.98rem;
    margin-bottom: 30px;
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.auth-page .field {
    margin-bottom: 18px;
}

.auth-page .field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 7px;
}

.auth-page .field input,
.auth-page .field select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--slate);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-page .field input:focus,
.auth-page .field select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(61, 190, 154, 0.14);
}

.auth-page .field input::placeholder {
    color: var(--slate-faint);
}

.field-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -6px;
    margin-bottom: 18px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--slate-soft);
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
}

.field-foot a {
    font-size: 0.86rem;
}

.btn-submit {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(61, 190, 154, 0.28);
    transition: all 0.25s;
}

.btn-submit:hover {
    background: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(61, 190, 154, 0.36);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--slate-faint);
    font-size: 0.82rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-google:hover {
    border-color: var(--slate-faint);
    background: #fafdfc;
    text-decoration: none;
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

.form-alt {
    margin-top: 26px;
    font-size: 0.92rem;
    color: var(--slate-soft);
    text-align: center;
}

.auth-page .field-error {
    color: #b91c1c;
    font-size: 0.84rem;
    margin-top: 6px;
    list-style: none;
    padding: 0;
}

/* Compact footer (ask-login.html) */
body.auth-page footer {
    background: var(--slate);
    color: rgba(255, 255, 255, 0.6);
    padding: 26px clamp(28px, 4vw, 64px);
    margin-top: 0;
}

body.auth-page .foot-row {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

body.auth-page .foot-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.auth-page .foot-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

body.auth-page .foot-links {
    display: flex;
    gap: 18px;
    font-size: 0.84rem;
}

body.auth-page .foot-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

body.auth-page .foot-links a:hover {
    color: var(--green-bright);
    text-decoration: none;
}

/* Register: AI chat demo (ask-register.html)
   Moved to /register.css — only loaded on /register.
   This file (auth.css) keeps only shared auth + login styles. */

/* Register form layout */
.register-split .form-wrap {
    max-width: 420px;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 420px) {
    .row2 {
        grid-template-columns: 1fr;
    }
}

.register-split .btn-submit {
    margin-top: 6px;
}

.form-fine {
    font-size: 0.8rem;
    color: var(--slate-faint);
    margin-top: 16px;
    line-height: 1.5;
}

.register-split .form-alt {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
}

.trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.trust span {
    font-size: 0.78rem;
    color: var(--slate-faint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust .c {
    color: var(--green-deep);
    font-weight: 700;
}

/* ───────────────────────────────
   Forgot-password additions
   (steps panel, breadcrumbs, success)
   ─────────────────────────────── */

/* Steps panel — similar to .panel but auto-height */
.steps-panel {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    contain: layout style;
}

.steps {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s, transform 0.5s, background 0.3s, border-color 0.3s;
}

.step.in {
    opacity: 1;
    transform: none;
}

.step.active {
    background: rgba(61, 190, 154, 0.14);
    border-color: rgba(61, 190, 154, 0.3);
}

.step .ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.step.active .ic {
    background: rgba(61, 190, 154, 0.22);
}

.step .ic svg {
    width: 18px;
    height: 18px;
    stroke: var(--green-bright);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step .meta b {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.step .meta small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
}

/* Breadcrumbs */
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--slate-faint);
    margin-bottom: 26px;
}

.crumbs a {
    color: var(--slate-faint);
}

.crumbs a:hover {
    color: var(--green-deep);
    text-decoration: none;
}

.crumbs .sep {
    color: var(--line);
    font-weight: 600;
}

.crumbs .here {
    color: var(--slate);
    font-weight: 600;
}

/* Success state */
.sent {
    display: none;
    text-align: center;
    padding: 10px 0;
}

.sent.show {
    display: block;
    animation: auth-fade 0.4s ease;
}

@keyframes auth-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.sent .badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sent .badge svg {
    width: 30px;
    height: 30px;
    stroke: var(--green-deep);
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sent h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--slate);
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.sent p {
    color: var(--slate-soft);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.sent .em {
    color: var(--slate);
    font-weight: 600;
}

.sent .resend {
    margin-top: 22px;
    font-size: 0.9rem;
}
