/* ==========================================================================
   EM Fleet - Tema pagine di autenticazione
   Usato da _AuthLayout.cshtml (Login, ForgotPassword, ResetPassword, conferme)
   ========================================================================== */

:root {
    --canvas: #eef1f8;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #94a3b8;
    --line: rgba(15, 23, 42, 0.08);
    --indigo: #4f46e5;
    --violet: #7c3aed;
    --teal: #0d9488;
    --sky: #0ea5e9;
    --danger: #e11d48;
    --success: #059669;
    --shadow-key: 0 40px 80px -32px rgba(30, 41, 59, 0.35);
    --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--canvas);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ============ Sfondo aurora ============ */
.aurora {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 12% 8%, #ffffff 0%, rgba(255,255,255,0) 60%),
        linear-gradient(160deg, #f2f5fc 0%, #e9edf8 45%, #eef2f7 100%);
}

.aurora span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.a1 {
    width: 44vw; height: 44vw; top: -14%; left: -8%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.55), rgba(129, 140, 248, 0) 68%);
    animation: float1 24s ease-in-out infinite;
}
.a2 {
    width: 38vw; height: 38vw; bottom: -16%; right: -6%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.42), rgba(45, 212, 191, 0) 68%);
    animation: float2 28s ease-in-out infinite;
}
.a3 {
    width: 30vw; height: 30vw; top: 46%; left: 44%;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.5), rgba(196, 181, 253, 0) 70%);
    animation: float3 32s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(5vw, 7vh) scale(1.1); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-6vw, -5vh) scale(1.08); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-4vw, 4vh) scale(0.92); }
}

.grain {
    position: fixed; inset: 0; pointer-events: none; opacity: 0.5; z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ============ Guscio ============ */
.page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.shell {
    position: relative;
    width: 100%;
    max-width: 1020px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-key), inset 0 1px 0 rgba(255,255,255,0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: shellIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

/* variante a colonna singola (pagine di conferma) */
.shell.solo {
    grid-template-columns: 1fr;
    max-width: 470px;
}

@keyframes shellIn {
    to { opacity: 1; transform: translateY(0); }
}

/* riflesso che segue il cursore */
.shell::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.55), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.shell:hover::after { opacity: 1; }

/* ============ Lato form ============ */
.form-side {
    position: relative;
    z-index: 3;
    padding: 44px 50px 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
}

.shell.solo .form-side { padding: 44px 42px 34px; }

.brand {
    display: inline-block;
    margin-bottom: 28px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover { transform: translateY(-2px); }
.brand img { height: 38px; display: block; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--indigo);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.14);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.eyebrow i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 31px;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 9px;
    color: var(--ink);
}

.sub {
    margin: 0 0 26px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.55;
}

/* ============ Campi ============ */
.field { margin-bottom: 17px; }

.field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.forgot {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--indigo);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.forgot:hover { opacity: 0.7; text-decoration: underline; }

.shell-input {
    position: relative;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.shell-input:focus-within {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 10px 26px -14px rgba(79, 70, 229, 0.6);
    transform: translateY(-1px);
}

.shell-input.invalid {
    border-color: rgba(225, 29, 72, 0.45);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

.shell-input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 14px 16px 14px 44px;
    border-radius: 14px;
}

.shell-input input::placeholder { color: #b8c1d1; }
.shell-input input:disabled { color: var(--ink-3); cursor: not-allowed; }
.shell-input.has-eye input { padding-right: 48px; }

.ico {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    color: var(--ink-3);
    pointer-events: none;
    transition: color 0.25s ease;
}
.shell-input:focus-within .ico { color: var(--indigo); }

.eye {
    position: absolute;
    right: 7px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--ink-3);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}
.eye:hover { color: var(--ink); background: rgba(15, 23, 42, 0.05); }
.eye:active { transform: translateY(-50%) scale(0.86); }
.eye svg { position: absolute; width: 18px; height: 18px; transition: opacity 0.22s ease, transform 0.22s ease; }
.eye .off { opacity: 0; transform: scale(0.5) rotate(-25deg); }
.eye .on  { opacity: 1; transform: scale(1) rotate(0); }
.eye.shown .on  { opacity: 0; transform: scale(0.5) rotate(25deg); }
.eye.shown .off { opacity: 1; transform: scale(1) rotate(0); }

.err {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--danger);
}

/* ============ Indicatore robustezza password ============ */
.meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
.meter.on { opacity: 1; max-height: 30px; }

.meter-bars { display: flex; gap: 4px; flex: 1; }
.meter-bars span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e4e8f0;
    transition: background 0.3s ease;
}
.meter-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3);
    min-width: 52px;
    text-align: right;
    transition: color 0.3s ease;
}

.meter[data-score="1"] .meter-bars span:nth-child(-n+1) { background: #e11d48; }
.meter[data-score="2"] .meter-bars span:nth-child(-n+2) { background: #f59e0b; }
.meter[data-score="3"] .meter-bars span:nth-child(-n+3) { background: #0ea5e9; }
.meter[data-score="4"] .meter-bars span                 { background: #059669; }
.meter[data-score="1"] .meter-label { color: #e11d48; }
.meter[data-score="2"] .meter-label { color: #b45309; }
.meter[data-score="3"] .meter-label { color: #0369a1; }
.meter[data-score="4"] .meter-label { color: #047857; }

/* ============ Switch "ricordami" ============ */
.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 22px;
    cursor: pointer;
    user-select: none;
}

.sw { position: relative; width: 40px; height: 23px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.sw .track {
    position: absolute; inset: 0;
    background: #dfe4ee;
    border-radius: 999px;
    transition: background 0.3s ease;
}
.sw .thumb {
    position: absolute; top: 3px; left: 3px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sw input:checked ~ .track { background: linear-gradient(120deg, var(--indigo), var(--violet)); }
.sw input:checked ~ .thumb { transform: translateX(17px); }
.remember span.txt { font-size: 14px; color: var(--ink-2); font-weight: 500; }

/* ============ Bottone ============ */
.btn {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(120deg, #4f46e5, #6d28d9 55%, #0d9488);
    background-size: 200% 100%;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 0.75);
    transition: transform 0.16s ease, box-shadow 0.3s ease, background-position 0.7s ease;
}
.btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.8);
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { cursor: default; }

/* stessa resa del bottone, ma su un link (pagine di conferma) */
a.btn {
    display: block;
    text-align: center;
    text-decoration: none;
}
a.btn .lbl { justify-content: center; }

.btn .lbl {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 9px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.btn .lbl svg { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn:hover .lbl svg { transform: translateX(4px); }

.btn .spin {
    position: absolute; top: 50%; left: 50%;
    width: 19px; height: 19px; margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0; transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn.loading .lbl { opacity: 0; transform: scale(0.9); }
.btn.loading .spin { opacity: 1; transform: scale(1); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: scale(1) rotate(360deg); } }

.btn .sheen {
    position: absolute; top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent);
    transform: skewX(-18deg);
    animation: sheen 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sheen {
    0%, 60%  { left: -60%; }
    100%     { left: 130%; }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rip 0.65s ease-out;
    pointer-events: none;
}
@keyframes rip { to { transform: scale(3.2); opacity: 0; } }

/* ============ Riepilogo errori ============ */
.summary {
    margin-top: 18px;
    padding: 13px 15px 13px 42px;
    position: relative;
    border-radius: 13px;
    background: rgba(225, 29, 72, 0.05);
    border: 1px solid rgba(225, 29, 72, 0.18);
    color: #9f1239;
    font-size: 13.5px;
    line-height: 1.5;
    display: none;
    animation: errIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.summary:not(:empty) { display: block; }
.summary::before {
    content: '!';
    position: absolute; left: 15px; top: 14px;
    width: 17px; height: 17px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 11px; font-weight: 700;
}
.summary ul { margin: 0; padding: 0; list-style: none; }
@keyframes errIn {
    from { opacity: 0; transform: translateY(-6px); }
}

/* ============ Link "torna al login" ============ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--indigo);
    text-decoration: none;
    transition: gap 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.back-link:hover { gap: 10px; opacity: 0.8; }
.back-link svg { width: 15px; height: 15px; }

.foot {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ============ Pagine di stato (conferme) ============ */
.status-badge {
    position: relative;
    width: 66px; height: 66px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #fff;
    animation: badgeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}
.status-badge svg { width: 30px; height: 30px; position: relative; z-index: 2; }

.status-badge.mail    { background: linear-gradient(135deg, var(--indigo), var(--violet)); box-shadow: 0 18px 36px -14px rgba(79, 70, 229, 0.8); }
.status-badge.success { background: linear-gradient(135deg, #10b981, var(--teal));         box-shadow: 0 18px 36px -14px rgba(13, 148, 136, 0.8); }

.status-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    opacity: 0.35;
    animation: badgeHalo 2.8s ease-out infinite;
}

@keyframes badgeIn {
    from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
}
@keyframes badgeHalo {
    0%   { transform: scale(1);   opacity: 0.35; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* tracciato del check disegnato */
.draw-check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawCheck 0.6s ease-out 0.7s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.hint-box {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.14);
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-2);
}
.hint-box strong { color: var(--ink); font-weight: 600; }

/* ============ Lato visual ============ */
.visual-side {
    position: relative;
    z-index: 3;
    padding: 44px 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(700px 500px at 80% 10%, rgba(99, 102, 241, 0.16), transparent 62%),
        radial-gradient(600px 500px at 10% 95%, rgba(13, 148, 136, 0.16), transparent 62%),
        linear-gradient(155deg, #f7f9ff, #eef2fb);
    border-left: 1px solid rgba(255,255,255,0.85);
}

.visual-side::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    pointer-events: none;
}

.visual-copy { position: relative; z-index: 2; }

.visual-copy h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--ink);
}
.visual-copy h2 em {
    font-style: normal;
    background: linear-gradient(110deg, var(--indigo), var(--violet) 50%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.visual-copy p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 34ch;
}

.stage {
    position: relative;
    z-index: 2;
    margin: 26px 0;
    flex: 1;
    min-height: 200px;
    display: grid;
    place-items: center;
}

/* percorso animato */
.route { width: 100%; max-width: 340px; overflow: visible; }
.route .path-bg { stroke: rgba(79, 70, 229, 0.16); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.route .path-fg {
    stroke: url(#grad); stroke-width: 3; fill: none; stroke-linecap: round;
    stroke-dasharray: 340; stroke-dashoffset: 340;
    animation: draw 5s ease-in-out infinite;
}
@keyframes draw {
    0%       { stroke-dashoffset: 340; }
    55%, 82% { stroke-dashoffset: 0; }
    100%     { stroke-dashoffset: -340; }
}
.route .node { fill: #fff; stroke: var(--indigo); stroke-width: 2.5; }
.route .node-pulse { fill: rgba(79, 70, 229, 0.18); animation: nodePulse 2.6s ease-out infinite; transform-origin: center; }
@keyframes nodePulse {
    0%   { r: 6; opacity: 0.7; }
    100% { r: 17; opacity: 0; }
}

/* lucchetto animato (pagine password) */
.lock { width: 100%; max-width: 220px; overflow: visible; }
.lock .lock-body { fill: #fff; stroke: var(--indigo); stroke-width: 3.5; }
.lock .lock-shackle {
    fill: none; stroke: var(--violet); stroke-width: 3.5; stroke-linecap: round;
    transform-origin: 60px 52px;
    animation: shackle 4s ease-in-out infinite;
}
@keyframes shackle {
    0%, 45%, 100% { transform: translateY(0); }
    60%, 85%      { transform: translateY(-7px); }
}
.lock .keyhole { fill: var(--indigo); }
.lock .spark {
    fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round;
    opacity: 0;
    animation: spark 4s ease-in-out infinite;
}
@keyframes spark {
    0%, 55%   { opacity: 0; transform: scale(0.7); }
    70%       { opacity: 1; transform: scale(1); }
    90%, 100% { opacity: 0; transform: scale(1.15); }
}

/* pill fluttuanti */
.chips { position: absolute; inset: 0; pointer-events: none; }

.chip-wrap {
    position: absolute;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 12px;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.4);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }

.chip-wrap.c1 { top: 4%;     left: -2%; }
.chip-wrap.c2 { top: 30%;    right: -4%; }
.chip-wrap.c3 { bottom: 16%; left: 2%; }
.chip-wrap.c4 { bottom: 0%;  right: 4%; }

.c1 .chip { color: var(--indigo); animation: bob 6s ease-in-out infinite; }
.c2 .chip { color: var(--teal);   animation: bob 7s ease-in-out 0.6s infinite; }
.c3 .chip { color: var(--violet); animation: bob 6.5s ease-in-out 1.2s infinite; }
.c4 .chip { color: var(--sky);    animation: bob 7.5s ease-in-out 0.3s infinite; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* ============ Avanzamento del flusso password ============ */
.steps {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-3);
    transition: color 0.3s ease;
}

.steps .bullet {
    position: relative;
    flex: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.75);
    border: 1.5px solid var(--line);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-3);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* linea di collegamento fra i pallini */
.steps li:not(:last-child) .bullet::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1.5px;
    height: 20px;
    transform: translateX(-50%);
    background: var(--line);
}

.steps .done { color: var(--ink-2); }
.steps .done .bullet {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    border-color: transparent;
    color: #fff;
}
.steps .done .bullet::after { background: rgba(79, 70, 229, 0.35); }
.steps .done .bullet svg { width: 13px; height: 13px; }

.steps .current { color: var(--ink); }
.steps .current .bullet {
    background: #fff;
    border-color: var(--indigo);
    color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.3); }
    70%  { box-shadow: 0 0 0 9px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.visual-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-3);
}
.visual-foot .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal);
    animation: pulse 2.4s ease-out infinite;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; max-width: 480px; }
    .visual-side { display: none; }
    .form-side { padding: 42px 32px 34px; }
    .auth-title { font-size: 29px; }
}

@media (max-width: 420px) {
    .page { padding: 18px 14px; }
    .form-side, .shell.solo .form-side { padding: 34px 22px 28px; }
    .auth-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
