/* Copyright (c) 2025 Clay Builder LLC. All rights reserved. */
/* No use, distribution, or modification is permitted without prior written permission. */

/* ==========================================================================
   AUTH PAGES (login / signup / account login)
   Shared styling — matches the editor's earth-tone aesthetic and flips to
   dark mode automatically. Relies on theme-variables.css for the
   --cb-gradient-* backdrop tokens (loaded before this file).
   ========================================================================== */

/* Theme colors come from core/theme-variables.css — the single source of truth
   for light/dark mode. Add color tokens there (light in :root, dark in the one
   prefers-color-scheme block); never start a private :root token system or a new
   dark block in this file. */

* { box-sizing: border-box; }

/* Make the root the scroll container so the sticky navbar has something to pin
   against (mirrors the homepage, where this is what makes sticky work). */
html { overflow-x: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--cb-gradient-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--cb-text);
    -webkit-font-smoothing: antialiased;
}

/* The navbar sits at the top; the split shell fills the entire space below it.
   We run it a touch taller than the viewport so the footer tucks just below the
   fold — in most cases you scroll a little to reveal it. */
.auth-main {
    flex: 1 0 auto;
    display: flex;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
}

/* Editor's drifting earth-tone gradient backdrop (mirrors editor.css). */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-color: var(--cb-gradient-bg);
    background-image: radial-gradient(circle at 20% 30%, var(--cb-gradient-1), transparent 20%),
        radial-gradient(circle at 80% 30%, var(--cb-gradient-2), transparent 60%),
        radial-gradient(circle at 50% 50%, var(--cb-gradient-3), transparent 20%),
        radial-gradient(circle at 20% 70%, var(--cb-gradient-4), transparent 35%),
        radial-gradient(circle at 80% 70%, var(--cb-gradient-5), transparent 20%),
        radial-gradient(circle at 25% 75%, var(--cb-gradient-6), transparent 35%),
        radial-gradient(circle at 75% 25%, var(--cb-gradient-7), transparent 20%),
        radial-gradient(circle at 50% 50%, var(--cb-gradient-8), transparent 35%);
    background-size: 200% 200%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    animation: gradientDrift 15s ease-in-out infinite;
}
@keyframes gradientDrift {
    0%   { transform: translate(0%, 0%); }
    25%  { transform: translate(25%, 0%); }
    50%  { transform: translate(25%, 25%); }
    75%  { transform: translate(0%, 25%); }
    100% { transform: translate(0%, 0%); }
}
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

/* ==========================================================================
   SPLIT SHELL — branded hero panel (left) + form (right) on desktop,
   collapsing to a single clean card on mobile.
   ========================================================================== */
.auth-shell {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: var(--cb-surface);
    overflow: hidden;
    opacity: 0;
    animation: cb-shell-in 0.5s ease forwards;
}
@keyframes cb-shell-in {
    to { opacity: 1; }
}

/* ---- Left: branded hero panel ---- */
.auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px;
    color: #fff7ec;
    background: var(--cb-auth-aside-bg);
    isolation: isolate;
}
/* Soft floating glows for depth */
.auth-aside::before,
.auth-aside::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
.auth-aside::before {
    width: 260px; height: 260px;
    top: -90px; right: -70px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.30), transparent 65%);
    animation: auth-orb-a 16s ease-in-out infinite;
}
.auth-aside::after {
    width: 340px; height: 340px;
    bottom: -130px; left: -100px;
    background: var(--cb-auth-aside-glow);
    animation: auth-orb-b 20s ease-in-out infinite;
}
@keyframes auth-orb-a {
    50% { transform: translate(22px, 20px) scale(1.08); }
}
@keyframes auth-orb-b {
    50% { transform: translate(-20px, -16px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .auth-aside::before, .auth-aside::after { animation: none; }
}
.auth-aside__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.auth-aside__eyebrow {
    display: inline-block;
    font-family: 'Monda', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 247, 236, 0.85);
    margin-bottom: 18px;
}
.auth-aside__eyebrow img { height: 34px; width: auto; display: block; }
.auth-aside__headline {
    font-family: 'Monda', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    text-shadow: 0 1px 2px rgba(120, 50, 0, 0.22);
}
.auth-aside__headline em {
    font-style: normal;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}
.auth-aside__sub {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 247, 236, 0.92);
    margin: 0 0 28px;
    max-width: 38ch;
}
.auth-aside__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-aside__features li {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #fff7ec;
}
.auth-aside__ficon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 0.92rem;
}

/* ---- Right: form stage (fills its half; surface so the backdrop never shows) ---- */
.auth-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: var(--cb-stage-bg);
    padding: 48px;
}

/* ===== Auth card — centered in the right panel with a subtle outline ===== */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 40px 30px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    box-shadow: var(--cb-card-shadow);
}

.auth-card__head {
    text-align: center;
    margin-bottom: 22px;
}
.auth-card__logo {
    height: 54px;
    width: auto;
    margin-bottom: 16px;
}
.auth-card__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cb-text);
}
.auth-card__subtitle {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--cb-text-soft);
}

/* ===== Status banner (session / logout / error / success) ===== */
.auth-banner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.3;
}
.auth-banner svg { flex: 0 0 16px; }
.auth-banner--info {
    color: var(--cb-accent-hover);
    background: var(--cb-accent-soft);
    border: 1px solid rgba(254, 132, 0, 0.30);
}
.auth-banner--error {
    color: var(--cb-invalid);
    background: rgba(196, 48, 43, 0.10);
    border: 1px solid rgba(196, 48, 43, 0.30);
}
.auth-banner--success {
    color: var(--cb-valid);
    background: rgba(30, 185, 91, 0.10);
    border: 1px solid rgba(30, 185, 91, 0.30);
}

/* ===== Form ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cb-text-soft);
}
.field__control {
    position: relative;
    display: flex;
    align-items: center;
}
.field__control input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border-radius: 9px;
    border: 1px solid var(--cb-border);
    background: var(--cb-surface);
    color: var(--cb-text);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field__control input::placeholder { color: var(--cb-text-faint); }
.field__control input:focus {
    outline: none;
    border-color: var(--cb-accent);
    box-shadow: 0 0 0 3px var(--cb-accent-soft);
}

/* Validity states — clear, obvious colour + icon feedback */
.field.is-valid .field__control input {
    border-color: var(--cb-valid);
}
.field.is-valid .field__control input:focus {
    box-shadow: 0 0 0 3px rgba(30, 185, 91, 0.18);
}
.field.is-invalid .field__control input {
    border-color: var(--cb-invalid);
}
.field.is-invalid .field__control input:focus {
    box-shadow: 0 0 0 3px rgba(196, 48, 43, 0.16);
}

/* Trailing status icon (check / alert) */
.field__status {
    position: absolute;
    right: 12px;
    display: none;
    pointer-events: none;
    line-height: 0;
}
.field.is-valid   .field__status--valid   { display: block; color: var(--cb-valid); }
.field.is-invalid .field__status--invalid { display: block; color: var(--cb-invalid); }

/* Password reveal toggle — nudged left when a status icon is showing */
.field__toggle {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--cb-text-faint);
    cursor: pointer;
    line-height: 0;
    border-radius: 6px;
    transition: color .15s ease;
}
.field__toggle:hover { color: var(--cb-text); }
.field--has-toggle .field__control input { padding-right: 64px; }
.field--has-toggle .field__status { right: 40px; }

.field__error {
    display: none;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--cb-invalid);
}
.field.is-invalid .field__error { display: block; }

/* ===== Submit ===== */
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 4px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff9d2f 0%, #fe8400 45%, #e07600 100%);
    border: 1px solid #c46900;
    cursor: pointer;
    letter-spacing: -0.005em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10),
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(196, 105, 0, 0.32);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.auth-submit:hover {
    background: linear-gradient(135deg, #ffac4d 0%, #fe8400 45%, #d56e00 100%);
    transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state — a spinner replaces the label while the request is in flight.
   Stays vivid (overrides the disabled dimming) so it reads as "working", not off. */
.auth-submit.is-loading {
    color: transparent !important;
    opacity: 1 !important;
    cursor: progress;
    transform: none;
    position: relative;
}
.auth-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: auth-spin 0.6s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .auth-submit.is-loading::after { animation-duration: 1.2s; }
}

/* ===== Footer ===== */
.auth-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--cb-border);
    text-align: center;
}
.auth-foot p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--cb-text-faint);
    line-height: 1.4;
}
.auth-foot a {
    color: var(--cb-text-soft);
    font-weight: 600;
    text-decoration: none;
}
.auth-foot a:hover { color: var(--cb-accent); }

/* Secondary link row beneath the footer note (e.g. "Back to sign in") */
.auth-altlink {
    margin: 10px 0 0;
    font-size: 0.82rem;
    text-align: center;
    color: var(--cb-text-soft);
}
.auth-altlink a {
    color: var(--cb-accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-altlink a:hover { text-decoration: underline; }
/* Stacked alt-links read as one block — only line spacing between them. */
.auth-altlink + .auth-altlink { margin-top: 0; }

/* Verification hint sits under the "I've verified" button; collapse it while
   empty so it adds no gap until there is a message to show. */
.verify-hint:empty { margin: 0; }

/* ==========================================================================
   EMAIL VERIFICATION FLOW — replaces the plain success banner after signup.
   A softly floating envelope badge sits above a three-step checklist that
   shows exactly where the user is: account made, check inbox (active), click
   link. The active step's marker pulses while we poll the server.
   ========================================================================== */
.verify-flow {
    margin-bottom: 20px;
    text-align: center;
}
.verify-flow__head { margin-bottom: 22px; }

/* Floating envelope badge with a pulsing halo */
.verify-flow__mail {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-accent);
    background: var(--cb-accent-soft);
    border: 1px solid rgba(254, 132, 0, 0.30);
    animation: verify-mail-float 3.2s ease-in-out infinite;
}
.verify-flow__mail svg { width: 38px; height: 38px; }
.verify-flow__mail::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid var(--cb-accent);
    opacity: 0;
    animation: verify-mail-halo 2.4s ease-out infinite;
}
@keyframes verify-mail-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes verify-mail-halo {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.32); }
}

.verify-flow__title {
    font-family: 'Monda', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--cb-text);
}
.verify-flow__lede {
    margin: 0 auto;
    max-width: 340px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--cb-text-soft);
}

/* ---- Three-step checklist ---- */
.verify-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.verify-step {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
}
.verify-step:last-child { padding-bottom: 0; }
/* Connector line linking one marker to the next */
.verify-step::before {
    content: '';
    position: absolute;
    left: 17px;        /* centres on the 36px-wide marker */
    top: 36px;
    bottom: 2px;
    width: 2px;
    background: var(--cb-border);
}
.verify-step:last-child::before { display: none; }

.verify-step__marker {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cb-surface);
    border: 2px solid var(--cb-border-strong);
    color: var(--cb-text-faint);
    z-index: 1;
}
.verify-step__marker svg { width: 17px; height: 17px; }

.verify-step__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 5px;
}
.verify-step__name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--cb-text);
}
.verify-step__desc {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--cb-text-soft);
}

/* Completed step — green marker and a filled connector below it */
.verify-step.is-done .verify-step__marker {
    background: var(--cb-valid);
    border-color: var(--cb-valid);
    color: #fff;
}
.verify-step.is-done::before { background: var(--cb-valid); }

/* Active step — accent ring that gently pulses while we wait */
.verify-step.is-active .verify-step__marker {
    background: var(--cb-accent-soft);
    border-color: var(--cb-accent);
    color: var(--cb-accent);
}
.verify-step.is-active .verify-step__marker::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--cb-accent);
    opacity: 0;
    animation: verify-step-pulse 1.8s ease-out infinite;
}
.verify-step.is-active .verify-step__name { color: var(--cb-accent-hover); }
@keyframes verify-step-pulse {
    0%   { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0;    transform: scale(1.45); }
}

@media (prefers-reduced-motion: reduce) {
    .verify-flow__mail { animation: none; }
    .verify-flow__mail::after,
    .verify-step.is-active .verify-step__marker::after { display: none; }
}

/* ===== Shake on rejected submission ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}
.shake { animation: shake 0.45s; }

/* ===== Responsive ===== */
/* Brand lives in the hero panel, so the form drops its own logo. */
.auth-card__head a { display: none; }

/* Tablet / mobile: the hero panel stacks on top as a banner, form below it. */
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside {
        padding: 40px 30px 36px;
        text-align: center;
    }
    .auth-aside__content { max-width: 480px; }
    .auth-aside__sub { margin-left: auto; margin-right: auto; }
    .auth-aside__features { display: none; }
    .auth-stage { padding: 36px 28px 46px; }
}

@media (max-width: 420px) {
    .auth-aside { padding: 32px 22px 28px; }
    .auth-aside__headline { font-size: 1.5rem; }
    .auth-stage { padding: 28px 20px 40px; }
}

/* ==========================================================================
   SUCCESS TAKEOVER — full-screen reveal played after a successful login.
   A warm circular wipe covers the page, a checkmark draws itself in, a light
   ripple bursts outward, and the message rises — then we hand off to the app.
   ========================================================================== */
.auth-success {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff7ec;
    overflow: hidden;
    background: linear-gradient(155deg, #ff9d2f 0%, #fe8400 38%, #d6660d 72%, #a8521f 100%);
    clip-path: circle(0% at 50% 50%);
    visibility: hidden;
    pointer-events: none;
}
/* Living, slowly drifting warm gradient behind everything. */
.auth-success::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    background:
        radial-gradient(circle at 24% 26%, #ffc06a, transparent 42%),
        radial-gradient(circle at 80% 18%, #ff7a18, transparent 40%),
        radial-gradient(circle at 72% 82%, #c63f12, transparent 46%),
        radial-gradient(circle at 18% 78%, #e89b3c, transparent 44%),
        linear-gradient(155deg, #ff9d2f 0%, #fe8400 40%, #d6660d 72%, #9a4517 100%);
    will-change: transform;
    animation: auth-success-drift 9s ease-in-out infinite;
}
@keyframes auth-success-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-6%, -4%) rotate(2deg); }
}
.auth-success.is-active {
    visibility: visible;
    pointer-events: auto;
    animation: auth-success-reveal 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes auth-success-reveal {
    from { clip-path: circle(0% at 50% 50%); }
    to   { clip-path: circle(150% at 50% 50%); }
}

.auth-success__inner { position: relative; z-index: 1; padding: 24px; }

/* Expanding light ripple behind the checkmark */
.auth-success__burst {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    opacity: 0;
}
.auth-success.is-active .auth-success__burst {
    animation: auth-success-burst 1.1s ease-out 0.5s forwards;
}
@keyframes auth-success-burst {
    0%   { opacity: 0.85; transform: scale(1); }
    100% { opacity: 0;    transform: scale(38); }
}

/* Checkmark */
.auth-success__check {
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto 24px;
}
.auth-success.is-active .auth-success__check {
    animation: auth-success-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
@keyframes auth-success-pop {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
.auth-success__check-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 4;
    stroke-dasharray: 201;
    stroke-dashoffset: 201;
}
.auth-success__check-mark {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
}
.auth-success.is-active .auth-success__check-ring { animation: auth-success-draw 0.5s ease 0.34s forwards; }
.auth-success.is-active .auth-success__check-mark { animation: auth-success-draw 0.4s ease 0.74s forwards; }
@keyframes auth-success-draw { to { stroke-dashoffset: 0; } }

.auth-success__title {
    font-family: 'Monda', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    opacity: 0;
    text-shadow: 0 1px 2px rgba(120, 50, 0, 0.22);
}
.auth-success__sub {
    margin: 8px 0 0;
    font-size: 0.96rem;
    color: rgba(255, 247, 236, 0.92);
    opacity: 0;
}
.auth-success.is-active .auth-success__title { animation: auth-success-rise 0.5s ease 0.9s both; }
.auth-success.is-active .auth-success__sub   { animation: auth-success-rise 0.5s ease 1.05s both; }
@keyframes auth-success-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-success::before { animation: none; }
    .auth-success.is-active { animation: none; clip-path: circle(150% at 50% 50%); }
    .auth-success.is-active .auth-success__check,
    .auth-success.is-active .auth-success__title,
    .auth-success.is-active .auth-success__sub { animation: none; opacity: 1; transform: none; }
    .auth-success.is-active .auth-success__check-ring,
    .auth-success.is-active .auth-success__check-mark { animation: none; stroke-dashoffset: 0; }
    .auth-success.is-active .auth-success__burst { animation: none; opacity: 0; }
}
