.fn-auth-body {
    margin: 0;
    min-height: 100dvh;
    background: #0b0c10;
    color: #15171c;
    font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}

[x-cloak] { display: none !important; }

.fn-auth {
    display: grid;
    min-height: 100dvh;
}

@media (min-width: 980px) {
    .fn-auth {
        grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr);
    }
}

.fn-auth-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: 28px 28px 24px;
    color: #fff;
    background:
        radial-gradient(1200px 480px at -10% -20%, rgba(255, 255, 255, .18), transparent 55%),
        linear-gradient(160deg, #8e0b20 0%, #C8102E 42%, #3a0710 100%);
}

.fn-auth-stage__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    bottom: -60px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 208, 214, .28), transparent 68%);
    pointer-events: none;
}

.fn-auth-stage__grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 100% 44px,
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 44px 100%;
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    opacity: .28;
    pointer-events: none;
}

.fn-auth-stage__top,
.fn-auth-stage__copy,
.fn-auth-wire,
.fn-auth-stage__foot {
    position: relative;
    z-index: 1;
}

.fn-auth-stage__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fn-auth-mark {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.fn-auth-mark .fn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fn-auth-mark .fn-brand__fox,
.fn-auth-mark .fn-brand__upload {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.fn-auth-mark .fn-brand__word {
    display: grid;
    gap: .1rem;
}

.fn-auth-mark .fn-brand__word strong {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .9;
    color: #fff;
}

.fn-auth-mark .fn-brand__word em {
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.fn-auth-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}

.fn-auth-live i {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    animation: fn-live 1.6s infinite;
}

@keyframes fn-live {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.fn-auth-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #ffd0d6;
}

.fn-auth-stage__copy h1 {
    margin: 0;
    max-width: 12ch;
    font-family: Newsreader, Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .95;
}

.fn-auth-stage__copy p {
    margin: 14px 0 0;
    max-width: 28rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
}

.fn-auth-wire {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fn-auth-wire a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(11, 12, 16, .18);
    backdrop-filter: blur(10px);
}

.fn-auth-wire a:hover {
    background: rgba(11, 12, 16, .32);
}

.fn-auth-wire span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #ffd0d6;
    padding-top: 3px;
}

.fn-auth-stage__foot {
    display: flex;
    gap: 18px;
    font-size: 12px;
    font-weight: 700;
}

.fn-auth-stage__foot a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
}

.fn-auth-stage__foot a:hover { color: #fff; }

.fn-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: #f6f3ee;
}

.fn-auth-card {
    width: min(100%, 440px);
}

.fn-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: #ece7df;
}

.fn-auth-tabs button,
.fn-auth-tabs a {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-weight: 800;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.fn-auth-tabs .is-on {
    background: #C8102E;
    color: #fff;
    box-shadow: 0 10px 24px rgba(200, 16, 46, .22);
}

.fn-auth-card h2 {
    margin: 0;
    font-family: Newsreader, Georgia, serif;
    font-size: 2.15rem;
    letter-spacing: -.03em;
}

.fn-auth-card .lede {
    margin: 8px 0 22px;
    color: #6b7280;
    line-height: 1.55;
}

.fn-auth-alert {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
}

.fn-auth-alert--error { background: #C8102E; color: #fff; }
.fn-auth-alert--ok { background: #0f7a3d; color: #fff; }

.fn-auth-form {
    display: grid;
    gap: 12px;
}

.fn-field {
    display: grid;
    gap: 6px;
}

.fn-field span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7280;
}

.fn-field input {
    width: 100%;
    border: 1px solid #e4ddd3;
    background: #fff;
    color: #15171c;
    padding: 13px 14px;
    font: inherit;
    border-radius: 0;
}

.fn-field input:focus {
    outline: 2px solid #C8102E;
    outline-offset: 1px;
}

.fn-pass {
    position: relative;
}

.fn-pass input { padding-right: 46px; }

.fn-pass button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.fn-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.fn-auth-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3f4550;
}

.fn-auth-row a {
    color: #C8102E;
    font-weight: 800;
    text-decoration: none;
}

.fn-auth-submit {
    border: 0;
    background: #C8102E;
    color: #fff;
    font: inherit;
    font-weight: 800;
    padding: 14px 16px;
    cursor: pointer;
}

.fn-auth-submit:hover { background: #8e0b20; }

.fn-or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 22px 0 16px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.fn-or::before,
.fn-or::after {
    content: '';
    height: 1px;
    background: #e4ddd3;
}

.fn-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.fn-social a,
.fn-social span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(21, 23, 28, .08);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, opacity .18s ease;
}

.fn-social a:hover { transform: translateY(-2px); }

.fn-social .is-off {
    opacity: .38;
    cursor: not-allowed;
}

.fn-social svg { width: 22px; height: 22px; }

.fn-social-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.fn-demos {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.fn-demos p {
    margin: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6b7280;
}

.fn-demos button {
    border: 1px solid #e4ddd3;
    background: #fff;
    color: #15171c;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px;
    cursor: pointer;
}

.fn-demos button:hover { border-color: #C8102E; color: #C8102E; }

.fn-legal {
    margin: 18px 0 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: #8b919c;
}

.fn-legal a { color: #C8102E; font-weight: 700; text-decoration: none; }

@media (max-width: 979px) {
    .fn-auth-stage {
        min-height: auto;
        padding: 22px 20px 18px;
    }
    .fn-auth-stage__copy h1 { max-width: none; font-size: 2.1rem; }
    .fn-auth-wire { display: none; }
}
