/* ==========================================================================
   AI Calabria — Area utenti (accesso, registrazione, account, squadre)
   Nessuno stile inline nei template: tutto qui.
   ========================================================================== */

:root {
    --auth-ink: #16233f;
    --auth-muted: #6b7593;
    --auth-line: #e2e7f1;
    --auth-bg: #f4f6fb;
    --auth-card: #ffffff;
    --auth-primary: #1f54d6;
    --auth-primary-ink: #0b2a6b;
    --auth-ok-bg: #e7f6ec;
    --auth-ok-ink: #1d6f3f;
    --auth-err-bg: #fdecec;
    --auth-err-ink: #b42318;
    --auth-warn-bg: #fff4e0;
    --auth-warn-ink: #9a6300;
    --auth-radius: 16px;
}

/* ----------------------------------------------------------------- shell */
.auth-shell {
    background: var(--auth-bg);
    padding: 56px 0 72px;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
}
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    padding: 36px 34px;
    box-shadow: 0 18px 50px rgba(16, 35, 70, 0.08);
}
.auth-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--auth-primary);
    margin: 0 0 6px;
}
.auth-title {
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--auth-ink);
    margin: 0 0 8px;
}
.auth-lead {
    color: var(--auth-muted);
    margin: 0 0 22px;
    font-size: 0.96rem;
}

/* ------------------------------------------------------------------ form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-ink);
}
.auth-field input,
.auth-field select,
.auth-field textarea {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 0.96rem;
    color: var(--auth-ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(31, 84, 214, 0.14);
}
.auth-field input:disabled { background: #f3f5fa; color: var(--auth-muted); }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-field-note {
    color: var(--auth-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}
.auth-entity-note {
    padding: 12px 14px;
    border: 1px solid #cfe0ff;
    border-radius: 11px;
    background: #eef5ff;
    color: var(--auth-primary-ink);
    font-size: 0.86rem;
    line-height: 1.45;
}
.auth-entity-note[hidden],
.auth-solo-ente[hidden] {
    display: none !important;
}

.auth-company-register {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e3c66f;
    border-radius: 14px;
    background: linear-gradient(145deg, #fffdf5 0%, #fff8df 100%);
    box-shadow: 0 10px 28px rgba(113, 82, 17, 0.09);
}
.auth-company-register__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(157, 119, 28, 0.2);
}
.auth-company-register__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #9b721c;
    color: #fff;
}
.auth-company-register__icon svg { width: 21px; height: 21px; }
.auth-company-register__head h2 {
    margin: 0 0 4px;
    color: #684a0d;
    font-size: 1.02rem;
    font-weight: 800;
}
.auth-company-register__head p {
    margin: 0;
    color: #7b642f;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--auth-ink);
    cursor: pointer;
    margin: 0;
}
.auth-check input { margin-top: 3px; }
.auth-consent { color: var(--auth-muted); font-size: 0.86rem; line-height: 1.45; }

.auth-submit { width: 100%; padding: 12px 16px; font-weight: 600; margin-top: 4px; }

.auth-link { color: var(--auth-primary); text-decoration: none; font-size: 0.9rem; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { margin: 18px 0 0; font-size: 0.9rem; color: var(--auth-muted); text-align: center; }
.auth-foot a { color: var(--auth-primary); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-register-cta {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #cddcff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f8ff 0%, #edf3ff 100%);
    text-align: center;
}
.auth-register-title {
    margin: 0 0 7px;
    color: var(--auth-primary-ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}
.auth-register-copy {
    margin: 0 0 15px;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.auth-register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--auth-primary);
    border-radius: 11px;
    background: #fff;
    color: var(--auth-primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.auth-register-button:hover,
.auth-register-button:focus-visible {
    background: var(--auth-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(31, 84, 214, 0.22);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

/* Login: registrazione subito visibile, prima dei campi di accesso. */
.auth-register-cta--top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 14px 15px;
    text-align: left;
}
.auth-register-cta--top .auth-register-title {
    margin-bottom: 3px;
    font-size: 0.98rem;
}
.auth-register-cta--top .auth-register-copy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
}
.auth-register-cta--top .auth-register-button {
    width: auto;
    min-width: 132px;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
}
.auth-muted { color: var(--auth-muted); }

/* ----------------------------------------------------------------- alert */
.auth-alert {
    border-radius: 11px;
    padding: 13px 15px;
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.45;
}
.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-alert-error { background: var(--auth-err-bg); color: var(--auth-err-ink); }
.auth-alert-ok { background: var(--auth-ok-bg); color: var(--auth-ok-ink); }

/* flash globali (header) */
.flash-stack {
    max-width: 1100px;
    margin: 18px auto 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flash {
    border-radius: 11px;
    padding: 12px 16px;
    font-size: 0.92rem;
    border: 1px solid transparent;
}
.flash-success { background: var(--auth-ok-bg); color: var(--auth-ok-ink); }
.flash-error { background: var(--auth-err-bg); color: var(--auth-err-ink); }
.flash-info { background: #eaf0ff; color: var(--auth-primary-ink); }
.flash-warning { background: #fff4d6; color: #6f4a00; border-color: #f2cf72; }

/* --------------------------------------------------------------- account */
.account-shell { background: var(--auth-bg); padding: 44px 0 72px; min-height: 60vh; }
.account-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.account-title { font-size: 1.9rem; color: var(--auth-ink); margin: 2px 0 4px; }
.account-sub { color: var(--auth-muted); margin: 0; }
.account-logout { margin: 0; }

.account-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--auth-warn-bg);
    color: var(--auth-warn-ink);
    border: 1px solid #f3e0b8;
    border-radius: 13px;
    padding: 15px 18px;
    margin-bottom: 24px;
}
.account-banner strong { display: block; }
.account-banner span { font-size: 0.9rem; }

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
.stat-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-label { font-size: 0.78rem; color: var(--auth-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 1.7rem; color: var(--auth-primary-ink); line-height: 1; }

.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.account-panel {
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 15px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.account-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.account-panel-head h2 { font-size: 1.15rem; color: var(--auth-ink); margin: 0; }
.account-empty { color: var(--auth-muted); font-size: 0.92rem; margin: 6px 0 0; }
.account-empty a { color: var(--auth-primary); }

.account-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.account-dl dt { color: var(--auth-muted); font-size: 0.86rem; }
.account-dl dd { margin: 0; color: var(--auth-ink); font-size: 0.92rem; }
.badge-ok { color: var(--auth-ok-ink); font-size: 0.78rem; font-weight: 700; }
.badge-warn { color: var(--auth-warn-ink); font-size: 0.78rem; font-weight: 700; }

/* ----------------------------------------------------------------- teams */
.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--auth-line); border-radius: 11px;
}
.team-item strong { display: block; color: var(--auth-ink); }
.team-meta { font-size: 0.82rem; color: var(--auth-muted); }

.team-create-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.team-create { display: flex; flex-direction: column; gap: 14px; }

.team-block .team-tag,
.team-tag {
    font-size: 0.72rem; font-weight: 700; color: var(--auth-primary);
    background: #eaf0ff; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
}
.team-motto { color: var(--auth-muted); font-style: italic; margin: -4px 0 14px; }
.team-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.team-h3 { font-size: 0.95rem; color: var(--auth-ink); margin: 0 0 10px; }
.team-h3-mt { margin-top: 20px; }
.team-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.team-members li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-name { color: var(--auth-ink); font-size: 0.92rem; }
.member-role { font-size: 0.74rem; color: var(--auth-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.invite-form { margin: 0; }
.invite-row { display: flex; gap: 8px; }
.invite-row input { flex: 1; border: 1px solid var(--auth-line); border-radius: 10px; padding: 10px 12px; }
.invite-row input:focus { outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 3px rgba(31,84,214,0.14); }
.invite-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.invite-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; color: var(--auth-ink); }
.invite-revoke { margin: 0; }
.btn-link-danger {
    background: none; border: none; color: var(--auth-err-ink); cursor: pointer;
    font-size: 0.82rem; text-decoration: underline; padding: 0;
}

/* ----------------------------------------------------- password toggle */
.pw-wrap { position: relative; }
.pw-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--auth-muted); cursor: pointer;
    font-size: 0.78rem; padding: 4px 6px;
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 860px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-stats { grid-template-columns: repeat(2, 1fr); }
    .team-cols { grid-template-columns: 1fr; }
    .team-create-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .auth-card { padding: 26px 22px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .auth-register-cta {
        margin-top: 20px;
        padding: 17px 15px;
    }
    .auth-register-cta--top {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0 0 18px;
        padding: 13px 14px;
        text-align: left;
    }
    .auth-register-cta--top .auth-register-button {
        width: 100%;
        min-height: 44px;
    }
    .auth-register-title {
        font-size: 1.05rem;
    }
    .auth-register-copy {
        font-size: 0.9rem;
    }
    .auth-register-button {
        min-height: 50px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   V9.2 — Accesso e registrazione: interfaccia contemporanea, semplice e mobile
   ========================================================================== */
.auth-shell {
    position: relative;
    overflow: hidden;
    padding: 38px 0 64px;
    background: #eef2f8;
}
.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(31, 84, 214, 0.12);
    border-radius: 50%;
    pointer-events: none;
}
.auth-shell::before {
    width: 360px;
    height: 360px;
    top: -220px;
    right: -110px;
}
.auth-shell::after {
    width: 260px;
    height: 260px;
    bottom: -165px;
    left: -90px;
}
.auth-shell .app-shell {
    position: relative;
    z-index: 1;
}
.auth-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(17, 42, 94, 0.12);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(12, 34, 78, 0.12);
}
.auth-card--accedi {
    max-width: 570px;
}
.auth-card--registrati {
    max-width: 880px;
}
.auth-card__body {
    padding: 30px 34px 34px;
}
.auth-brandbar {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 20px;
    overflow: hidden;
    background: #071b4a;
    color: #fff;
}
.auth-brandbar::before,
.auth-brandbar::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    pointer-events: none;
}
.auth-brandbar::before {
    width: 106px;
    height: 106px;
    top: -70px;
    right: 68px;
}
.auth-brandbar::after {
    width: 64px;
    height: 64px;
    right: 20px;
    bottom: -44px;
}
.auth-brandbar__mark {
    position: relative;
    z-index: 1;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 13px;
    background: #1647b7;
}
.auth-brandbar__mark svg {
    width: 21px;
    height: 21px;
}
.auth-brandbar__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.auth-brandbar__copy strong {
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}
.auth-brandbar__copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}
.auth-brandbar__free {
    position: relative;
    z-index: 1;
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

/* Accesso: prima la registrazione gratuita, poi il login. */
.auth-new-account {
    padding: 18px;
    border: 1px solid #ccd9f8;
    border-radius: 17px;
    background: #f4f7ff;
}
.auth-new-account .auth-kicker {
    margin-bottom: 5px;
}
.auth-new-account .auth-title {
    margin-bottom: 6px;
    font-size: 1.45rem;
}
.auth-new-account .auth-lead {
    margin-bottom: 15px;
}
.auth-register-button {
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 13px;
    border: 0;
    border-radius: 13px;
    background: #174fc7;
    color: #fff;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(23, 79, 199, 0.19);
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.auth-register-button:hover,
.auth-register-button:focus-visible {
    background: #0e3fae;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(23, 79, 199, 0.24);
    outline: none;
}
.auth-register-button__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
}
.auth-register-button__icon svg,
.auth-register-button__arrow svg {
    width: 19px;
    height: 19px;
}
.auth-register-button > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.auth-register-button strong {
    font-size: 0.98rem;
    line-height: 1.2;
}
.auth-register-button small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.74rem;
    line-height: 1.2;
}
.auth-register-button__arrow {
    display: grid;
    place-items: center;
}
.auth-access-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    color: #8390aa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.auth-access-divider::before,
.auth-access-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e1e7f1;
}
.auth-access-divider span {
    padding: 0 12px;
}
.auth-login-panel .auth-kicker {
    margin-bottom: 4px;
}
.auth-title--login {
    margin-bottom: 5px;
    font-size: 1.36rem;
}
.auth-login-panel .auth-lead {
    margin-bottom: 17px;
}
.auth-form--login {
    gap: 13px;
}
.auth-field > span {
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}
.auth-field input,
.auth-field select,
.auth-field textarea {
    min-height: 50px;
    border: 1px solid #cfd8e8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(11, 42, 107, 0.025);
}
.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: #a0aabc;
}
.auth-field input:hover,
.auth-field select:hover,
.auth-field textarea:hover {
    border-color: #afbdd4;
}
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: #1f54d6;
    box-shadow: 0 0 0 4px rgba(31, 84, 214, 0.11);
}
.auth-submit--play {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: #0b2a6b;
    box-shadow: 0 10px 22px rgba(11, 42, 107, 0.18);
}
.auth-submit--play:hover,
.auth-submit--play:focus-visible {
    background: #071f52;
}
.auth-submit--play svg {
    width: 18px;
    height: 18px;
}

/* Registrazione. */
.auth-register-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.auth-register-head .auth-title {
    margin-bottom: 6px;
    font-size: 1.8rem;
}
.auth-register-head .auth-lead {
    max-width: 590px;
    margin-bottom: 0;
}
.auth-login-shortcut {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 10px 13px;
    border: 1px solid #d5deec;
    border-radius: 12px;
    background: #f7f9fc;
    color: #687590;
    font-size: 0.72rem;
    line-height: 1.2;
    text-decoration: none;
}
.auth-login-shortcut strong {
    color: #174fc7;
    font-size: 0.9rem;
}
.auth-login-shortcut:hover,
.auth-login-shortcut:focus-visible {
    border-color: #174fc7;
    background: #fff;
    text-decoration: none;
    outline: none;
}
.auth-form--register {
    gap: 18px;
}
.auth-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 2px;
}
.auth-section-heading--data {
    margin-top: 7px;
    padding-top: 18px;
    border-top: 1px solid #e5eaf2;
}
.auth-section-heading__number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0b2a6b;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 850;
}
.auth-section-heading > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.auth-section-heading strong {
    color: #16233f;
    font-size: 0.96rem;
}
.auth-section-heading small {
    margin-top: 2px;
    color: #7b879d;
    font-size: 0.76rem;
}
.auth-scelta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.auth-scelta-opt {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 12px;
    row-gap: 3px;
    padding: 16px 42px 16px 16px;
    border: 1px solid #d7dfeb;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}
.auth-scelta-opt:hover {
    border-color: #8facf0;
    transform: translateY(-1px);
}
.auth-scelta-opt.is-on {
    border-color: #1f54d6;
    background: #f3f6ff;
    box-shadow: 0 9px 24px rgba(31, 84, 214, 0.11);
}
.auth-scelta-opt::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid #b6c1d3;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}
.auth-scelta-opt.is-on::after {
    border-color: #1f54d6;
    background: #1f54d6;
}
.auth-scelta-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-scelta-ico {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    align-self: center;
    border-radius: 14px;
    background: #e8eefc;
    color: #174fc7;
}
.auth-scelta-opt.is-on .auth-scelta-ico {
    background: #174fc7;
    color: #fff;
}
.auth-scelta-ico svg {
    width: 23px;
    height: 23px;
}
.auth-scelta-opt b {
    align-self: end;
    color: #16233f;
    font-size: 0.94rem;
    line-height: 1.25;
}
.auth-scelta-opt small {
    color: #71809a;
    font-size: 0.76rem;
    line-height: 1.35;
}
.auth-entity-note {
    border-color: #c8d8f5;
    border-radius: 13px;
    background: #f2f6ff;
}
.auth-company-register {
    border-color: #dec77c;
    background: #fffaf0;
    box-shadow: 0 10px 28px rgba(113, 82, 17, 0.08);
}
.auth-consents {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    background: #f8fafc;
}
.auth-consents .auth-check input {
    flex: 0 0 auto;
}
.auth-card--registrati .auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    background: #0b2a6b;
    box-shadow: 0 11px 24px rgba(11, 42, 107, 0.18);
    font-weight: 800;
}
.auth-card--registrati .auth-submit:hover,
.auth-card--registrati .auth-submit:focus-visible {
    background: #071f52;
}
.auth-card--registrati .auth-foot {
    margin-top: 20px;
}

@media (max-width: 700px) {
    .auth-shell {
        padding: 20px 0 44px;
    }
    .auth-card {
        border-radius: 18px;
    }
    .auth-card__body {
        padding: 24px 22px 28px;
    }
    .auth-register-head {
        flex-direction: column;
        gap: 13px;
    }
    .auth-login-shortcut {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .auth-scelta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding-top: 12px;
    }
    .auth-card {
        padding: 0;
        border-radius: 16px;
    }
    .auth-brandbar {
        min-height: 64px;
        padding: 11px 15px;
    }
    .auth-brandbar__mark {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
    .auth-brandbar__free {
        padding: 5px 8px;
        font-size: 0.61rem;
    }
    .auth-card__body {
        padding: 19px 16px 23px;
    }
    .auth-new-account {
        padding: 15px;
        border-radius: 14px;
    }
    .auth-new-account .auth-title {
        font-size: 1.27rem;
    }
    .auth-new-account .auth-lead {
        margin-bottom: 12px;
        font-size: 0.86rem;
    }
    .auth-register-button {
        min-height: 54px;
        grid-template-columns: 34px minmax(0, 1fr) 20px;
        gap: 9px;
        padding: 9px 11px;
    }
    .auth-register-button__icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .auth-access-divider {
        height: 32px;
    }
    .auth-title--login {
        font-size: 1.2rem;
    }
    .auth-login-panel .auth-lead {
        margin-bottom: 13px;
        font-size: 0.84rem;
    }
    .auth-field input,
    .auth-field select,
    .auth-field textarea {
        min-height: 48px;
    }
    .auth-row {
        font-size: 0.82rem;
    }
    .auth-register-head .auth-title {
        font-size: 1.48rem;
    }
    .auth-register-head .auth-lead {
        font-size: 0.86rem;
    }
    .auth-section-heading--data {
        padding-top: 14px;
    }
    .auth-scelta-opt {
        min-height: 104px;
        padding: 14px 40px 14px 14px;
    }
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Invito personale WhatsApp */
.auth-invite-banner {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #bfe8cf;
    border-radius: 16px;
    background: #eefaf3;
    color: #153d2a;
}

.auth-invite-banner__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #1aaa59;
    color: #fff;
}

.auth-invite-banner__icon .icn {
    width: 22px;
    height: 22px;
}

.auth-invite-banner small,
.auth-invite-banner b {
    display: block;
}

.auth-invite-banner small {
    color: #147243;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}

.auth-invite-banner b {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
}

/* Invito contestuale alla Compagnia */
.auth-invite-banner em {
    display: block;
    margin-top: 4px;
    color: #52617d;
    font-size: 11px;
    font-style: normal;
    line-height: 1.4;
}

/* Flusso ospite nel login e firma dei contributi durante la registrazione */
.auth-guest-try {
    margin: -4px -4px 22px;
}
.auth-guest-try .guest-play {
    max-width: none;
    box-shadow: 0 18px 44px rgba(31, 58, 124, .12);
}
.auth-access-divider--after-game {
    margin: 24px 0;
}
.auth-access-divider--after-game span {
    max-width: 220px;
}
.auth-guest-claim-banner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #bcd0fa;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef4ff, #f2edff);
}
.auth-guest-claim-banner > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #1747ad;
    color: #fff;
    font-size: 19px;
}
.auth-guest-claim-banner small,
.auth-guest-claim-banner b,
.auth-guest-claim-banner p { display: block; }
.auth-guest-claim-banner small { color: #3157af; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.auth-guest-claim-banner b { margin-top: 3px; color: #172858; font-size: 15px; }
.auth-guest-claim-banner p { margin: 5px 0 0; color: #5e6c88; font-size: 11px; line-height: 1.45; }

/* Firma progressiva dei contributi ospite, appoggiata al form di registrazione esistente. */
.auth-guest-sign-step,
.auth-guest-sign-detail-head {
    padding: 20px;
    border: 1px solid #dbe6fb;
    border-radius: 22px;
    background: #f7faff;
}
.auth-guest-sign-step > small,
.auth-guest-sign-detail-head > small {
    color: #275bc0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
}
.auth-guest-sign-step h2,
.auth-guest-sign-detail-head h2 {
    margin: 5px 0 7px;
    color: #172858;
    font-size: 22px;
    line-height: 1.12;
}
.auth-guest-sign-step p,
.auth-guest-sign-detail-head p {
    margin: 0 0 15px;
    color: #62708c;
    font-size: 13px;
    line-height: 1.5;
}
.auth-guest-sign-step .auth-field { margin: 0 0 12px; }
.auth-guest-sign-continue {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    background: #188447;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 13px 28px rgba(24, 132, 71, .20);
}
.auth-guest-sign-step > a {
    display: block;
    margin-top: 12px;
    color: #2458b8;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.auth-guest-sign-email-summary {
    border: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8efff;
    color: #2458b8;
    font-size: 11px;
    font-weight: 800;
}
.guest-sign-stage-hidden,
.guest-sign-permanent-hidden {
    display: none !important;
}
@media (max-width: 560px) {
    .auth-guest-sign-step,
    .auth-guest-sign-detail-head { padding: 16px; border-radius: 18px; }
    .auth-guest-sign-step h2,
    .auth-guest-sign-detail-head h2 { font-size: 20px; }
}

/* Accesso diretto: nessun gioco ospite o registrazione estesa nella pagina Accedi. */
.auth-login-panel--direct {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.auth-foot--register {
    margin-top: 18px;
    text-align: center;
}


.auth-diaspora-fields {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(37, 88, 170, .15);
    border-radius: 18px;
    background: rgba(239, 245, 255, .72);
}
.auth-diaspora-fields small { font-weight: 800; letter-spacing: .08em; color: #315efb; }
.auth-diaspora-fields h3 { margin: .15rem 0 .25rem; font-size: 1.05rem; }
.auth-diaspora-fields p { margin: 0; color: #657087; font-size: .9rem; }
.auth-diaspora-fields label { display: grid; gap: .35rem; }
.auth-diaspora-fields select,
.auth-diaspora-fields input { width: 100%; }
