/* ============================================================
   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 ---------- */
.au-card .alert {
    border: none;
    border-left: 3px solid #C62828;
    background: #FEF2F2;
    color: #7F1D1D;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    font-size: .875rem;
    margin-bottom: 18px;
}

.au-card .validation-summary-errors,
.au-card .validation-errors { display: none; } /* per-field messages carry the detail */

/* ============================================================
   The aurora panel
   ============================================================ */

.au-visual {
    position: relative;
    overflow: hidden;
    background: #081420;
}

.au-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}

.au-blob-1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle at 35% 35%, #1B9AAA, transparent 65%);
    top: -18%; left: -12%;
    animation: au-drift-1 26s ease-in-out infinite alternate;
}

.au-blob-2 {
    width: 46vw; height: 46vw;
    background: radial-gradient(circle at 60% 40%, #7DC242, transparent 62%);
    bottom: -20%; right: -14%;
    animation: au-drift-2 32s ease-in-out infinite alternate;
}

.au-blob-3 {
    width: 34vw; height: 34vw;
    background: radial-gradient(circle at 50% 50%, #16A385, transparent 60%);
    top: 38%; left: 34%;
    opacity: .4;
    animation: au-drift-3 38s ease-in-out infinite alternate;
}

@keyframes au-drift-1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(9%, 12%) scale(1.12); }
}

@keyframes au-drift-2 {
    from { transform: translate(0, 0) scale(1.05); }
    to { transform: translate(-10%, -9%) scale(.95); }
}

@keyframes au-drift-3 {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-12%, 10%) rotate(12deg); }
}

.au-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 75%);
}

/* ---------- floating glass cards ---------- */
.au-glass {
    position: absolute;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(2, 8, 20, .45);
}

.au-glass-form {
    top: 24%;
    left: 18%;
    width: min(320px, 42%);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: au-float-1 9s ease-in-out infinite alternate;
}

.au-glass-label {
    display: block;
    width: 44%;
    height: 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .34);
}

.au-glass-label-short { width: 30%; margin-top: 8px; }

.au-glass-input {
    display: block;
    width: 100%;
    height: 34px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
}

.au-glass-btn {
    align-self: flex-start;
    margin-top: 10px;
    background: linear-gradient(90deg, #1B9AAA, #7DC242);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    border-radius: 7px;
    padding: 9px 22px;
}

.au-glass-stat {
    top: 62%;
    left: 46%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    animation: au-float-2 11s ease-in-out infinite alternate;
    animation-delay: 1.5s;
}

.au-glass-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(125, 194, 66, .9);
    color: #06220f;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 15px;
}

.au-glass-stat-text { color: rgba(255, 255, 255, .85); font-size: .875rem; }
.au-glass-stat-text strong { color: #fff; font-size: 1.0625rem; margin-right: 4px; }

@keyframes au-float-1 {
    from { transform: translateY(0) rotate(-1.2deg); }
    to { transform: translateY(-14px) rotate(.6deg); }
}

@keyframes au-float-2 {
    from { transform: translateY(0); }
    to { transform: translateY(-18px); }
}

/* ---------- tagline ---------- */
.au-tagline {
    position: absolute;
    left: 48px;
    bottom: 44px;
    right: 48px;
}

.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(255, 255, 255, .65);
    font-size: 1.0625rem;
    margin: 0;
}

/* ---------- motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
    .au-blob, .au-glass-form, .au-glass-stat, .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);
    }
}
