/* ============================================================
   anota auth experience (au-*) — Stripe-caliber split layout:
   white form column + living aurora brand panel.
   ============================================================ */

.au-shell {
    display: grid;
    grid-template-columns: minmax(460px, 46%) 1fr;
    min-height: 100vh;
    background: #fff;
}

/* ---------- form side ---------- */
.au-form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px 24px;
    position: relative;
}

.au-card {
    width: 100%;
    max-width: 400px;
}

.au-logo { display: inline-block; margin-bottom: 36px; }
.au-logo img { height: 30px; display: block; }

.au-form-footer {
    margin-top: auto;
    padding-top: 24px;
}

.au-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--an-ink, #0B1929);
    margin: 0 0 6px;
}

.au-subtitle {
    font-size: .9375rem;
    color: var(--an-slate-500, #64748B);
    margin: 0 0 28px;
}

.au-subtitle a { color: var(--an-primary, #16A385); font-weight: 600; text-decoration: none; }
.au-subtitle a:hover { text-decoration: underline; }

/* ---------- floating-label fields ---------- */
.au-field {
    position: relative;
    margin-bottom: 18px;
}

.au-input {
    width: 100%;
    height: 52px;
    padding: 20px 14px 6px;
    font-size: .9375rem;
    font-family: inherit;
    color: var(--an-ink, #0B1929);
    background: #fff;
    border: 1px solid var(--an-slate-300, #CBD5E1);
    border-radius: 8px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    box-sizing: border-box;
}

.au-input::placeholder { color: transparent; }

.au-input:hover { border-color: var(--an-slate-400, #94A3B8); }

.au-input:focus {
    outline: none;
    border-color: var(--an-primary, #16A385);
    box-shadow: 0 0 0 4px rgba(22, 163, 133, .14);
}

.au-label {
    position: absolute;
    left: 14px;
    top: 16px;
    font-size: .9375rem;
    color: var(--an-slate-400, #94A3B8);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 150ms ease, color 150ms ease;
}

.au-input:focus ~ .au-label,
.au-input:not(:placeholder-shown) ~ .au-label {
    transform: translateY(-10px) scale(.74);
    color: var(--an-slate-500, #64748B);
}

.au-input:focus ~ .au-label { color: var(--an-primary, #16A385); }

.au-field .validation-message {
    display: block;
    margin-top: 6px;
    font-size: .8125rem;
    color: #C62828;
}

/* invalid state from Blazor's .invalid class */
.au-input.invalid { outline: none; border-color: #C62828; }
.au-input.invalid:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }

/* ---------- remember / forgot row ---------- */
.au-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 22px;
    font-size: .875rem;
}

.au-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--an-slate-600, #475B73);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.au-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--an-primary, #16A385);
}

.au-link {
    color: var(--an-primary, #16A385);
    font-weight: 600;
    text-decoration: none;
}

.au-link:hover { text-decoration: underline; color: var(--an-primary-dark, #0F8A70); }

/* ---------- buttons ---------- */
.au-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: var(--an-primary, #16A385);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 150ms ease, box-shadow 200ms ease, transform 100ms ease;
}

.au-btn:hover {
    background: var(--an-primary-dark, #0F8A70);
    box-shadow: 0 6px 16px rgba(22, 163, 133, .28);
}

.au-btn:active { transform: scale(.99); }

/* light sweep on hover — the one flourish */
.au-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
    transform: translateX(-120%);
}

.au-btn:hover::after { transition: transform 650ms ease; transform: translateX(120%); }

.au-btn-ghost {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--an-slate-300, #CBD5E1);
    border-radius: 8px;
    background: #fff;
    color: var(--an-slate-600, #475B73);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.au-btn-ghost:hover { background: var(--an-slate-50, #F8FAFC); border-color: var(--an-slate-400, #94A3B8); }

/* ---------- divider ---------- */
.au-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--an-slate-400, #94A3B8);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.au-divider::before, .au-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--an-slate-200, #E2E8F0);
}

/* ---------- footer links ---------- */
.au-links {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--an-slate-100, #F1F5F9);
    font-size: .875rem;
    color: var(--an-slate-500, #64748B);
}

.au-links p { margin: 0 0 8px; }

.au-links-small { font-size: .8125rem; }
.au-links-small a { color: var(--an-slate-500, #64748B); text-decoration: none; }
.au-links-small a:hover { color: var(--an-primary, #16A385); }

/* ---------- status / alerts inside the card ---------- */
/* StatusMessage renders .an-status (styled in app.css); only the summary needs hiding */
.au-card .validation-summary-errors,
.au-card .validation-errors { display: none; } /* per-field messages carry the detail */

/* informational note (external-login handoff, dev-mode confirmation link) */
.au-note {
    border-left: 3px solid var(--an-teal, #1B9AAA);
    background: #EFF8FA;
    color: #0E5560;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    font-size: .875rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.au-note a { color: #0E5560; font-weight: 600; }

/* body copy on message-only pages (confirmations, lockout, access denied) */
.au-text {
    font-size: .9375rem;
    color: var(--an-slate-600, #475B73);
    line-height: 1.6;
    margin: 0 0 22px;
}

.au-text a { color: var(--an-primary, #16A385); font-weight: 600; text-decoration: none; }
.au-text a:hover { text-decoration: underline; }

/* au-btn worn by an <a> (call-to-action links on message pages) */
a.au-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: #fff;
}

/* read-only values shown in auth flows */
.au-input:disabled { background: var(--an-slate-50, #F8FAFC); color: var(--an-slate-500, #64748B); }

/* ============================================================
   The brand panel — the spec's band-deep gradient staging a REAL
   rendered form (the same af-form machinery public forms use).
   ============================================================ */

.au-visual {
    position: relative;
    overflow: hidden;
    background: var(--an-band-deep, #083540);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 56px 48px;
}

/* the framed live form */
.au-demo {
    width: min(560px, 100%);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--an-glow-green, 0 0 0 1px rgba(125, 194, 66, .25), 0 24px 64px rgba(0, 0, 0, .45));
    overflow: hidden;
}

.au-demo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--an-slate-50, #F8FAFC);
    border-bottom: 1px solid var(--an-slate-200, #E2E8F0);
    padding: 10px 16px;
}

.au-demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--an-slate-200, #E2E8F0); }

.au-demo-url {
    margin-left: 12px;
    font-size: .75rem;
    color: var(--an-slate-400, #94A3B8);
    background: #fff;
    border: 1px solid var(--an-slate-200, #E2E8F0);
    border-radius: 999px;
    padding: 4px 16px;
}

.au-demo-form {
    padding: 28px 28px 0;
    background: #F0F7F4;
    max-height: 48vh;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
}

.au-demo-page {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 4px 6px rgba(11, 25, 41, .06);
}

/* ---------- tagline (in flow, right under the frame — no dead space) ---------- */
.au-tagline { text-align: center; }

.au-tagline-main {
    color: #fff;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 2px;
}

.au-tagline-sub {
    color: rgba(242, 251, 248, .78);
    font-size: 1.0625rem;
    margin: 0;
}

/* ---------- motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
    .au-btn::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1024px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-visual { display: none; }
    .au-form-side { padding-top: 40px; }
    .au-form-side::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1B9AAA, #7DC242);
    }
}
