/* ==========================================================================
   KARTA - Pages d'authentification (v3)
   Même langage que la landing : accent lime unique, Clash Display + Satoshi.
   Rendu stable : pas d'animation d'entrée qui déplace ou agrandit la mise en page.
   Thèmes : sombre par défaut, clair via html[data-theme="light"].
   Le panneau d'aperçu (droite) reste sombre dans les deux thèmes.
   ========================================================================== */

:root {
    --bg: #0a0a0b;
    --bg-2: #111113;
    --field: rgba(17, 17, 19, .72);
    --field-focus: rgba(17, 17, 19, .92);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --line-3: rgba(255, 255, 255, .28);
    --hover: rgba(255, 255, 255, .05);
    --text: #f4f4f1;
    --muted: #a1a19b;
    --subtle: #7a7a74;
    --accent: #d4ff3f;
    --accent-fg: #d4ff3f;
    --accent-ink: #0c0f02;
    --accent-soft: rgba(212, 255, 63, .12);
    --danger: #ff6b5e;
    --warning: #ffb547;
    --success: #7ee787;
    --alert-err-text: #ffd0cb;
    --alert-ok-text: #eef9cf;
    --dot: rgba(255, 255, 255, .1);

    /* Compatibilité avec auth.js (couleurs de validation) */
    --color-danger-500: var(--danger);
    --color-danger-600: var(--danger);
    --color-warning-600: var(--warning);
    --color-success-500: var(--success);
    --color-success-600: var(--success);

    --f-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
    --f-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --r: 28px;
    --r-field: 14px;
    --ease: cubic-bezier(.16, 1, .3, 1);

    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #f5f4ef;
    --bg-2: #ffffff;
    --field: #ffffff;
    --field-focus: #ffffff;
    --line: rgba(12, 13, 10, .08);
    --line-2: rgba(12, 13, 10, .14);
    --line-3: rgba(12, 13, 10, .3);
    --hover: rgba(12, 13, 10, .05);
    --text: #0c0d0a;
    --muted: #5b5c55;
    --subtle: #85867e;
    --accent-fg: #4b6800;
    --accent-soft: rgba(120, 160, 0, .12);
    --danger: #d23b2c;
    --warning: #b86e00;
    --success: #3f7d12;
    --alert-err-text: #7d1c13;
    --alert-ok-text: #2c3d00;
    --dot: rgba(12, 13, 10, .1);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
    min-height: 100dvh;
    background: var(--bg); color: var(--text);
    font-family: var(--f-body); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    transition: opacity .35s ease;
}
/* Page masquée le temps que les polices arrivent (700 ms max) : aucun saut de texte */
html.is-loading body { opacity: 0; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 3px; border-radius: 6px; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.brand__mark i { font-size: 18px; transform: rotate(90deg); }
.brand__word { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.03em; }

/* ==========================================================================
   STRUCTURE
   ========================================================================== */
.auth {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100dvh;
}

.auth__form {
    display: flex; flex-direction: column;
    min-height: 100dvh;
    padding: 24px clamp(20px, 5vw, 64px);
}
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px; color: var(--muted);
    border: 1px solid var(--line-2);
    transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-3); background: var(--hover); }
.icon-btn__moon { display: none; }
html[data-theme="light"] .icon-btn__sun { display: none; }
html[data-theme="light"] .icon-btn__moon { display: block; }

.auth__back {
    display: inline-flex; align-items: center; gap: 8px; height: 40px;
    padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
    font-size: 14px; font-weight: 500; color: var(--muted);
    transition: color .2s, border-color .2s, background-color .2s;
}
.auth__back:hover { color: var(--text); border-color: var(--line-3); background: var(--hover); }

.auth__body {
    width: 100%; max-width: 440px;
    margin: auto; padding-block: 40px;
}

/* Onglets Connexion / Inscription */
.auth-tabs {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 4px; margin-bottom: 32px; border-radius: 999px;
    background: var(--field); border: 1px solid var(--line-2);
}
.auth-tabs__item {
    position: relative; z-index: 1;
    display: grid; place-items: center; height: 42px; border-radius: 999px;
    font-size: 14.5px; font-weight: 700; color: var(--muted);
    transition: color .25s;
}
.auth-tabs__item:hover { color: var(--text); }
.auth-tabs__item[aria-current="page"] { color: var(--accent-ink); }
.auth-tabs__pill {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: 999px; background: var(--accent);
}
.auth-tabs__item:nth-child(2)[aria-current="page"] ~ .auth-tabs__pill { transform: translateX(100%); }

.auth__head { margin-bottom: 28px; }
.auth__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-fg);
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.auth__eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.auth__title {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.04; letter-spacing: -.03em;
    word-spacing: .04em; text-wrap: balance;
}
.auth__subtitle { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.auth__subtitle a, .auth-link { color: var(--accent-fg); font-weight: 700; transition: opacity .2s; }
.auth__subtitle a:hover, .auth-link:hover { opacity: .8; }

.auth__foot {
    display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
    font-size: 13px; color: var(--subtle);
}
.auth__foot span { display: inline-flex; align-items: center; gap: 6px; }
.auth__foot i { color: var(--accent-fg); font-size: 15px; }

/* ==========================================================================
   APERÇU DU PROFIL (droite, toujours sombre)
   ========================================================================== */
.auth__visual {
    position: sticky; top: 0;
    height: 100dvh; padding: 14px;
}
.avis {
    --text: #f4f4f1; --muted: #a1a19b; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
    position: relative; height: 100%; overflow: hidden;
    display: flex; flex-direction: column;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--r);
    background:
        radial-gradient(90% 70% at 80% 0%, rgba(212,255,63,.13), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(38,110,72,.28), transparent 65%),
        #0d0d0f;
    border: 1px solid rgba(255,255,255,.06);
    color: var(--text);
}
html[data-theme="light"] .avis { box-shadow: 0 30px 80px -40px rgba(12,13,10,.45); }
.avis__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
}
.avis__glow {
    position: absolute; left: 50%; top: 44%; width: 420px; height: 420px; translate: -50% -50%;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(212,255,63,.16), transparent 70%);
}

.avis__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.avis__chip, .avis__live {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
}
.avis__chip i { color: var(--accent); font-size: 16px; }
.avis__live span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(212,255,63,.18); }

/* Scène : profil + carte */
.avis__stage {
    position: relative; flex: 1; min-height: 0;
    display: grid; place-items: center;
    padding-block: 24px;
}
.mini {
    position: relative; z-index: 2;
    width: min(300px, 78%);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 26px 20px 20px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(28,28,31,.92), rgba(17,17,19,.96));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
}
.mini__avatar {
    width: 68px; height: 68px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 200deg, var(--accent), rgba(212,255,63,.15), var(--accent));
}
.mini__avatar span {
    width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
    background: #1b1b1e; color: var(--accent);
    font-family: var(--f-display); font-size: 28px; font-weight: 600;
}
.mini__name {
    margin-top: 12px; max-width: 100%;
    font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini__role { margin-top: 3px; font-size: 13px; color: var(--muted); }
.mini__url {
    margin-top: 10px; max-width: 100%; padding: 4px 11px; border-radius: 999px;
    background: rgba(212,255,63,.1); color: var(--accent); font-size: 12px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini__url b { font-weight: 800; }
.mini__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 16px; }
.mini__actions span {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 9px 4px; border-radius: 14px;
    background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700;
}
.mini__actions i { font-size: 17px; }
.mini__links { display: grid; gap: 6px; width: 100%; margin-top: 8px; }
.mini__links span {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.mini__links i:first-child { font-size: 17px; color: var(--accent); }
.mini__links i:last-child { margin-left: auto; color: var(--muted); font-size: 14px; }

.kcard {
    position: absolute; z-index: 3;
    left: calc(50% - min(300px, 78%) / 2 - 70px); bottom: 8%;
    width: 210px; aspect-ratio: 85.6 / 54;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 16px 18px; border-radius: 14px; overflow: hidden;
    background:
        repeating-linear-gradient(100deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
        linear-gradient(135deg, #2c2c30 0%, #121214 50%, #1e1e21 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.07), 0 30px 60px -20px rgba(0,0,0,.9);
    transform: rotate(-9deg);
}
.kcard__top { display: flex; justify-content: space-between; align-items: center; }
.kcard__logo { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.03em; color: var(--accent); }
.kcard__top i { font-size: 20px; color: rgba(255,255,255,.7); }
.kcard__bottom { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.kcard__name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard__role { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ondes NFC entre la carte et le profil (transformations isolées, sans effet sur la mise en page) */
.avis__waves {
    position: absolute; z-index: 1; width: 0; height: 0;
    left: calc(50% - min(300px, 78%) / 2 + 20px); bottom: calc(8% + 70px);
}
.avis__waves span {
    position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%;
    border: 1.5px solid var(--accent); opacity: 0;
    animation: wave 3.6s ease-out infinite;
}
.avis__waves span:nth-child(2) { animation-delay: 1.2s; }
.avis__waves span:nth-child(3) { animation-delay: 2.4s; }
@keyframes wave { 0% { opacity: .55; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.35); } }

.avis__copy { position: relative; }
.avis__copy h2 {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em;
    word-spacing: .04em; max-width: 17ch; text-wrap: balance;
}
.avis__copy p { margin-top: 10px; color: rgba(244,244,241,.72); max-width: 46ch; font-size: 15px; }
.avis__copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.avis__copy li {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
}
.avis__copy li i { color: var(--accent); font-size: 15px; }

/* Écrans peu hauts : on allège l'aperçu */
@media (max-height: 820px) {
    .mini__links { display: none; }
    .avis__copy p { display: none; }
}
@media (max-height: 660px) {
    .avis__copy ul { display: none; }
    .mini__actions { display: none; }
}

/* ==========================================================================
   FORMULAIRES (classes partagées par login / register / forgot / reset)
   ========================================================================== */
form { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.floating-label-group { position: relative; margin-bottom: 12px; }
.floating-input {
    width: 100%; height: 58px;
    padding: 23px 16px 7px;
    border-radius: var(--r-field);
    background: var(--field);
    border: 1px solid var(--line-2);
    color: var(--text); font: inherit; font-size: 16px; font-weight: 500;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.floating-input:hover { border-color: var(--line-3); }
.floating-input:focus { outline: none; border-color: var(--accent-fg); background: var(--field-focus); box-shadow: 0 0 0 4px var(--accent-soft); }
.floating-input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 60px var(--bg-2) inset; caret-color: var(--text); }
html:not([data-theme="light"]) .floating-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #151517 inset; }
.floating-label {
    position: absolute; left: 17px; top: 18px;
    font-size: 15px; color: var(--muted);
    pointer-events: none; transform-origin: left top;
    transition: transform .25s var(--ease), color .2s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 34px);
}
.has-action .floating-label { max-width: calc(100% - 70px); }
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label,
.floating-input:-webkit-autofill + .floating-label { transform: translateY(-10px) scale(.78); }
.floating-input:focus + .floating-label { color: var(--accent-fg); }
.has-action .floating-input { padding-right: 52px; }

.input-action-btn {
    position: absolute; right: 8px; top: 9px;
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center; font-size: 19px; color: var(--muted);
    transition: color .2s, background-color .2s;
}
.input-action-btn:hover { color: var(--text); background: var(--hover); }

.field-help { display: flex; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: var(--subtle); line-height: 1.45; }
.field-help i { color: var(--accent-fg); font-size: 16px; flex: none; margin-top: 1px; }
.auth-note { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* Nom d'utilisateur : le statut est posé sur le champ, il ne décale rien */
.has-status .floating-input { padding-right: 116px; }
.username-status-badge {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.username-status-badge:empty { display: none; }
.username-status-badge.checking { color: var(--muted); background: var(--hover); }
.username-status-badge.available { color: var(--accent-ink); background: var(--accent); }
.username-status-badge.taken { color: #fff; background: var(--danger); }
.username-preview-url {
    display: flex; align-items: center; gap: 2px;
    margin: -4px 0 14px; padding: 0 2px;
    font-size: 13px; color: var(--subtle); white-space: nowrap; overflow: hidden;
}
.username-preview-url i { font-size: 15px; margin-right: 6px; color: var(--accent-fg); }
.url-base { flex: none; }
.url-slug { color: var(--accent-fg); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }

/* Force du mot de passe : hauteur réservée, rien ne bouge en tapant */
.password-strength-bar { display: flex; align-items: center; gap: 12px; margin: -2px 0 14px; height: 18px; }
.strength-tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.strength-track { height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color .3s; }
.strength-track.filled-weak { background: var(--danger); }
.strength-track.filled-medium { background: var(--warning); }
.strength-track.filled-strong { background: var(--accent-fg); }
.strength-label { font-size: 12.5px; font-weight: 700; width: 64px; text-align: right; }

/* Bloc repliable (code de carte) */
.auth-more { margin: 2px 0 14px; border-radius: var(--r-field); border: 1px dashed var(--line-2); }
.auth-more summary {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px;
    font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none;
}
.auth-more summary::-webkit-details-marker { display: none; }
.auth-more summary > i:first-child { font-size: 18px; color: var(--accent-fg); }
.auth-more summary .auth-more__chev { margin-left: auto; transition: transform .25s var(--ease); }
.auth-more[open] summary .auth-more__chev { transform: rotate(180deg); }
.auth-more summary:hover { color: var(--text); }
.auth-more__body { padding: 0 12px 4px; }
.auth-more__body .field-help { margin-top: -2px; }

/* Cases à cocher */
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 20px; cursor: pointer; }
.checkbox-group input {
    flex: none; width: 20px; height: 20px; margin-top: 1px;
    -webkit-appearance: none; appearance: none;
    border-radius: 6px; border: 1.5px solid var(--line-3); background: var(--field);
    display: grid; place-items: center; cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.checkbox-group input::after {
    content: ""; width: 10px; height: 6px; margin-top: -2px;
    border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
    transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease);
}
.checkbox-group input:checked { background: var(--accent); border-color: var(--accent); }
.checkbox-group input:checked::after { transform: rotate(-45deg) scale(1); }
.checkbox-label { font-size: 14px; color: var(--muted); line-height: 1.45; }
.checkbox-label a { color: var(--accent-fg); font-weight: 700; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; }
.auth-row .checkbox-group { margin: 0; }
.auth-row .auth-link { font-size: 14px; }

/* Boutons */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1.1; text-align: center;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .3s var(--ease), opacity .2s;
}
.btn i { font-size: 1.15em; transition: transform .3s var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 12px 36px -12px rgba(160, 200, 20, .65); }
.btn-secondary { border: 1px solid var(--line-2); background: var(--field); color: var(--text); }
.btn-secondary:hover { border-color: var(--line-3); background: var(--hover); }
.btn.is-loading, .btn:disabled { opacity: .75; cursor: progress; }
.btn.is-loading::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}

.auth-alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-alt a { color: var(--accent-fg); font-weight: 700; }

/* Séparateur */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider-text { font-size: 13px; color: var(--subtle); white-space: nowrap; }

/* Alertes */
.form-alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 16px; margin-bottom: 18px; border-radius: var(--r-field);
    font-size: 14.5px; line-height: 1.5;
}
.form-alert-icon { font-size: 20px; flex: none; margin-top: 1px; }
.form-alert-error { background: rgba(255,107,94,.1); border: 1px solid rgba(255,107,94,.35); color: var(--alert-err-text); }
.form-alert-error .form-alert-icon { color: var(--danger); }
.form-alert-success, .form-alert-info { background: var(--accent-soft); border: 1px solid rgba(160,200,20,.35); color: var(--alert-ok-text); }
.form-alert-success .form-alert-icon, .form-alert-info .form-alert-icon { color: var(--accent-fg); }
.form-alert a { color: var(--accent-fg); word-break: break-all; }
.form-alert + .btn { margin-top: 4px; }
.dev-link { display: block; margin-top: 10px; font-size: 12.5px; }

/* ==========================================================================
   FOND
   ========================================================================== */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__glow {
    position: absolute; left: -20vmax; top: -30vmax; width: 70vmax; height: 70vmax; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(212,255,63,.1), transparent 70%);
}
html[data-theme="light"] .bg__glow { background: radial-gradient(closest-side, rgba(170,220,0,.16), transparent 70%); }
.bg__dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 40%, #000 10%, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 70% at 25% 40%, #000 10%, transparent 80%);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .auth { grid-template-columns: 1fr; }
    .auth__visual { display: none; }
    .bg__dots { -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 10%, transparent 80%); }
}
@media (max-width: 767px) {
    .auth__form { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
    .auth__body { padding-block: 28px; }
    .auth__back span { display: none; }
    .auth__back { width: 40px; padding: 0; justify-content: center; }
    .auth-tabs { margin-bottom: 26px; }
    .auth__foot { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
