/* Zone18 — pages d’authentification (accueil + panel) */

body.z18-auth-velzon {
    min-height: 100vh;
    margin: 0;
    color: #495057;
    background: #f3f3f9;
    font-family: "Poppins", "IBM Plex Sans", sans-serif;
    font-size: 14px;
}

body.z18-auth-velzon *,
body.z18-auth-velzon *::before,
body.z18-auth-velzon *::after {
    box-sizing: border-box;
}

/* ========== Login joueur centré ========== */

body.z18-login-center {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    color: #1f242b;
    background: #14171c;
    font-family: "Manrope", "Poppins", sans-serif;
}

body.z18-login-center .z18-login-center-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(194, 79, 71, .55), transparent 58%),
        radial-gradient(circle at 15% 85%, rgba(194, 79, 71, .22), transparent 32%),
        radial-gradient(circle at 90% 70%, rgba(194, 79, 71, .16), transparent 28%),
        linear-gradient(165deg, #1a1214 0%, #121518 42%, #0d0f12 100%);
}

body.z18-login-center .z18-login-center-main {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 16px;
}

body.z18-login-center .z18-login-center-card {
    width: min(420px, 100%);
    padding: 36px 32px 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(194, 79, 71, .12);
    text-align: center;
}

body.z18-login-center .z18-login-center-brand {
    display: inline-flex;
    align-items: baseline;
    margin: 0 0 8px;
    color: #1f242b;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    text-decoration: none;
}

body.z18-login-center .z18-login-center-brand span {
    color: #c24f47;
}

body.z18-login-center .z18-login-center-kicker {
    margin: 0 0 14px;
    color: #c24f47;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.z18-login-center .z18-login-center-card > h1 {
    margin: 0 0 6px;
    color: #1f242b;
    font-size: 24px;
    font-weight: 800;
}

body.z18-login-center .z18-login-center-lead {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

body.z18-login-center .z18-login-center-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

body.z18-login-center .z18-login-center-alert.is-err {
    color: #9f2d2d;
    background: #fdecec;
}

body.z18-login-center .z18-login-center-alert.is-ok {
    color: #166534;
    background: #e9f8ef;
}

body.z18-login-center .z18-login-center-form {
    display: grid;
    gap: 14px;
    text-align: left;
}

body.z18-login-center .z18-login-center-field {
    display: grid;
    gap: 6px;
}

body.z18-login-center .z18-login-center-field > span {
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

body.z18-login-center .z18-login-center-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f242b;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

body.z18-login-center .z18-login-center-field input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

body.z18-login-center .z18-login-center-field input:focus {
    outline: 0;
    border-color: rgba(194, 79, 71, .45);
    box-shadow: 0 0 0 3px rgba(194, 79, 71, .14);
}

body.z18-login-center .z18-login-center-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

body.z18-login-center .z18-login-center-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

body.z18-login-center .z18-login-center-check input {
    width: 16px;
    height: 16px;
    accent-color: #c24f47;
    cursor: pointer;
}

body.z18-login-center .z18-login-center-row > a {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-login-center .z18-login-center-row > a:hover {
    color: #c24f47;
}

body.z18-login-center .z18-login-center-submit {
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, #d06a63 0%, #c24f47 100%);
    box-shadow: 0 10px 22px rgba(194, 79, 71, .22);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

body.z18-login-center .z18-login-center-submit:hover {
    filter: brightness(1.04);
}

body.z18-login-center .z18-login-center-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

body.z18-login-center .z18-login-center-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    background: #f8f9fb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-login-center .z18-login-center-actions a.is-primary {
    color: #fff;
    border-color: transparent;
    background: #1f242b;
}

body.z18-login-center .z18-login-center-actions a:hover {
    border-color: rgba(194, 79, 71, .35);
    color: #c24f47;
}

body.z18-login-center .z18-login-center-actions a.is-primary:hover {
    color: #fff;
    background: #c24f47;
    border-color: transparent;
}

body.z18-login-center .z18-login-center-notif {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 600;
}

body.z18-login-center .z18-login-center-notif-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #9ca3af;
}

body.z18-login-center .z18-login-center-notif-dot.is-on,
body.z18-login-center .zone18-login-notif-dot.is-on {
    background: #22c55e;
}

body.z18-login-center .z18-login-center-notif-dot.is-off,
body.z18-login-center .zone18-login-notif-dot.is-off {
    background: #ef4444;
}

body.z18-login-center .z18-login-center-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
}

body.z18-login-center .z18-login-center-foot a {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-login-center .z18-login-center-foot a:hover {
    color: #c24f47;
}

@media (max-width: 480px) {
    body.z18-login-center .z18-login-center-card {
        padding: 28px 20px 20px;
    }

    body.z18-login-center .z18-login-center-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== Inscription centrée ========== */

body.z18-register-center .z18-login-center-card.is-wide {
    width: min(480px, 100%);
}

body.z18-register-center .z18-login-center-main {
    align-items: start;
    padding-top: 40px;
    padding-bottom: 48px;
}

body.z18-register-center .z18-register-center-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}

body.z18-register-center .z18-register-center-steps span {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #9ca3af;
    background: #f8f9fb;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

body.z18-register-center .z18-register-center-steps span.is-done {
    color: #c24f47;
    border-color: rgba(194, 79, 71, .25);
    background: rgba(194, 79, 71, .08);
}

body.z18-register-center .z18-register-center-steps span.is-current {
    color: #fff;
    border-color: transparent;
    background: #1f242b;
}

body.z18-register-center .z18-register-center-info {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    background: #f8f9fb;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

body.z18-register-center .z18-register-center-info p {
    margin: 0 0 10px;
}

body.z18-register-center .z18-register-center-info a {
    color: #c24f47;
    font-weight: 800;
    text-decoration: none;
}

body.z18-register-center .z18-register-center-info a:hover {
    text-decoration: underline;
}

body.z18-register-center .z18-register-center-info.is-success {
    color: #166534;
    border-color: rgba(34, 140, 84, .2);
    background: #e9f8ef;
}

body.z18-register-center .z18-register-center-info strong {
    display: block;
    margin-bottom: 6px;
    color: #14532d;
    font-size: 15px;
}

body.z18-register-center .z18-register-center-group {
    display: grid;
    gap: 12px;
    margin: 0 0 2px;
    padding: 14px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fafbfc;
}

body.z18-register-center .z18-register-center-group h3 {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
}

body.z18-register-center .z18-register-center-help {
    margin: -4px 0 0;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

body.z18-register-center .z18-register-center-captcha {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

body.z18-register-center .z18-register-center-captcha-q {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, #d06a63 0%, #c24f47 100%);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(194, 79, 71, .2);
}

body.z18-register-center .z18-register-center-ghost {
    min-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    background: #f8f9fb;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

body.z18-register-center .z18-register-center-ghost:hover {
    border-color: rgba(194, 79, 71, .35);
    color: #c24f47;
}

body.z18-register-center .z18-register-center-legal {
    align-items: flex-start;
    text-align: left;
    line-height: 1.4;
}

body.z18-register-center .z18-register-center-legal a {
    color: #c24f47;
    font-weight: 800;
    text-decoration: none;
}

body.z18-register-center .z18-register-center-legal a:hover {
    text-decoration: underline;
}

body.z18-register-center .z18-register-center-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 480px) {
    body.z18-register-center .z18-register-center-steps span {
        font-size: 9px;
    }

    body.z18-register-center .z18-register-center-captcha {
        grid-template-columns: 1fr;
    }
}

/* ========== Accueil / connexion joueur (legacy split) ========== */

body.z18-auth-gate {
    background: #12151a !important;
    color: #e8eaed;
}

body.z18-auth-gate .z18-auth-gate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    min-height: 100vh;
}

body.z18-auth-gate .z18-auth-visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100vh;
}

body.z18-auth-gate .z18-auth-visual-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: 62% center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.05);
    animation: z18AuthKen 22s ease-in-out infinite alternate;
}

body.z18-auth-gate .z18-auth-visual-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(10, 12, 16, .82) 0%, rgba(10, 12, 16, .42) 46%, rgba(10, 12, 16, .72) 100%),
        linear-gradient(180deg, rgba(10, 12, 16, .18) 0%, transparent 28%, rgba(10, 12, 16, .55) 100%),
        radial-gradient(circle at 22% 78%, rgba(229, 72, 63, .22), transparent 36%);
}

body.z18-auth-gate .z18-auth-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: clamp(28px, 5vw, 64px);
    animation: z18AuthRise .7s ease both;
}

body.z18-auth-gate .z18-auth-brand {
    display: inline-flex;
    align-items: baseline;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    text-decoration: none;
}

body.z18-auth-gate .z18-auth-brand span {
    color: #e5483f;
}

body.z18-auth-gate .z18-auth-visual-content h1 {
    max-width: 14ch;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1.12;
}

body.z18-auth-gate .z18-auth-visual-content > p {
    max-width: 36ch;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.55;
}

body.z18-auth-gate .z18-auth-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.z18-auth-gate .z18-auth-cta-primary,
body.z18-auth-gate .z18-auth-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

body.z18-auth-gate .z18-auth-cta-primary {
    color: #fff;
    background: #e5483f;
    box-shadow: 0 10px 28px rgba(229, 72, 63, .28);
}

body.z18-auth-gate .z18-auth-cta-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
}

body.z18-auth-gate .z18-auth-cta-primary:hover,
body.z18-auth-gate .z18-auth-cta-ghost:hover {
    transform: translateY(-1px);
}

body.z18-auth-gate .z18-auth-panel {
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vw, 48px);
    background:
        radial-gradient(circle at 90% 0%, rgba(229, 72, 63, .08), transparent 36%),
        #f4f5f7;
    color: #343a40;
    animation: z18AuthFade .55s ease .08s both;
}

body.z18-auth-gate .z18-auth-panel-inner {
    width: min(420px, 100%);
}

body.z18-auth-gate .z18-auth-kicker {
    margin: 0 0 8px;
    color: #e5483f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.z18-auth-gate .z18-auth-panel-head h2 {
    margin: 0 0 8px;
    color: #1f242b;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

body.z18-auth-gate .z18-auth-lead {
    margin: 0 0 22px;
    color: #6b7280;
    line-height: 1.5;
}

body.z18-auth-gate .z18-auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

body.z18-auth-gate .z18-auth-alert.is-err {
    border-color: rgba(229, 72, 63, .28);
    color: #b42318;
    background: rgba(229, 72, 63, .1);
}

body.z18-auth-gate .z18-auth-alert.is-ok {
    border-color: rgba(10, 179, 156, .28);
    color: #0b7668;
    background: rgba(10, 179, 156, .1);
}

body.z18-auth-gate .z18-auth-form {
    display: grid;
    gap: 14px;
}

body.z18-auth-gate .z18-auth-field {
    display: grid;
    gap: 7px;
}

body.z18-auth-gate .z18-auth-field > span {
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

body.z18-auth-gate .z18-auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d5d9e0;
    border-radius: 10px;
    color: #1f242b;
    background: #fff;
    font-size: 15px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

body.z18-auth-gate .z18-auth-field input:focus {
    border-color: rgba(229, 72, 63, .55);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(229, 72, 63, .12);
}

body.z18-auth-gate .z18-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}

body.z18-auth-gate .z18-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: #e5483f;
}

body.z18-auth-gate .z18-auth-submit {
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #e5483f;
    box-shadow: 0 12px 28px rgba(229, 72, 63, .28);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease;
}

body.z18-auth-gate .z18-auth-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

body.z18-auth-gate .z18-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

body.z18-auth-gate .z18-auth-links a {
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.z18-auth-gate .z18-auth-links a:hover {
    color: #e5483f;
}

body.z18-auth-gate .z18-auth-notif,
body.z18-auth-gate .zone18-login-notif-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 11px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    background: #fff;
    font-size: 12px;
    line-height: 1.4;
}

body.z18-auth-gate .z18-auth-notif-dot,
body.z18-auth-gate .zone18-login-notif-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #9ca3af;
}

body.z18-auth-gate .z18-auth-notif-dot.is-on,
body.z18-auth-gate .zone18-login-notif-dot.is-on {
    background: #0ab39c;
}

body.z18-auth-gate .z18-auth-notif-dot.is-off,
body.z18-auth-gate .zone18-login-notif-dot.is-off {
    background: #e5483f;
}

body.z18-auth-gate .z18-auth-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

body.z18-auth-gate .z18-auth-foot a {
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
}

body.z18-auth-gate .z18-auth-foot a:hover {
    color: #e5483f;
}

/* Login home polish */
body.z18-login-home {
    font-family: "Manrope", "Poppins", sans-serif;
}

body.z18-login-home .z18-auth-panel {
    background:
        radial-gradient(circle at 88% 8%, rgba(194, 79, 71, .07), transparent 34%),
        linear-gradient(180deg, #f7f8fa 0%, #eef0f3 100%);
}

body.z18-login-home .z18-auth-panel-inner {
    padding: 8px 4px;
}

body.z18-login-home .z18-auth-kicker {
    color: #c24f47;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
}

body.z18-login-home .z18-auth-panel-head h2 {
    margin: 0 0 6px;
    color: #1f242b;
    font-size: 28px;
    font-weight: 800;
}

body.z18-login-home .z18-auth-lead {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

body.z18-login-home .z18-auth-field > span {
    color: #4b5563;
    font-weight: 700;
}

body.z18-login-home .z18-auth-field input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

body.z18-login-home .z18-auth-field input:focus {
    border-color: rgba(194, 79, 71, .45);
    box-shadow: 0 0 0 3px rgba(194, 79, 71, .14);
}

body.z18-login-home .z18-login-home-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

body.z18-login-home .z18-login-home-forgot {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-login-home .z18-login-home-forgot:hover {
    color: #c24f47;
}

body.z18-login-home .z18-auth-submit {
    border-radius: 10px;
    background: linear-gradient(180deg, #d06a63 0%, #c24f47 100%);
    box-shadow: 0 10px 22px rgba(194, 79, 71, .24);
    font-weight: 800;
}

body.z18-login-home .z18-auth-submit:hover {
    filter: brightness(1.04);
}

body.z18-login-home .z18-auth-links {
    justify-content: space-between;
}

body.z18-login-home .z18-auth-brand span {
    color: #e08b84;
}

body.z18-login-home .z18-auth-cta-primary {
    background: #c24f47;
    box-shadow: 0 10px 28px rgba(194, 79, 71, .28);
}

@media (max-width: 960px) {
    body.z18-login-home .z18-login-home-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes z18AuthKen {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes z18AuthRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes z18AuthFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 980px) {
    body.z18-auth-gate .z18-auth-gate-shell {
        grid-template-columns: 1fr;
    }

    body.z18-auth-gate .z18-auth-visual {
        min-height: 42vh;
    }

    body.z18-auth-gate .z18-auth-visual-content {
        justify-content: flex-end;
        padding: 28px 22px 32px;
    }

    body.z18-auth-gate .z18-auth-brand {
        font-size: 40px;
        margin-bottom: 12px;
    }

    body.z18-auth-gate .z18-auth-visual-content h1 {
        font-size: 28px;
        max-width: none;
    }

    body.z18-auth-gate .z18-auth-visual-content > p {
        margin-bottom: 18px;
        font-size: 14px;
    }

    body.z18-auth-gate .z18-auth-panel {
        padding: 28px 20px 36px;
        min-height: 58vh;
        align-items: start;
    }
}

@media (max-width: 520px) {
    body.z18-auth-gate .z18-auth-cta {
        width: 100%;
    }

    body.z18-auth-gate .z18-auth-cta-primary,
    body.z18-auth-gate .z18-auth-cta-ghost {
        flex: 1 1 auto;
    }

    body.z18-auth-gate .z18-auth-links {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.z18-auth-gate .z18-auth-visual-media,
    body.z18-auth-gate .z18-auth-visual-content,
    body.z18-auth-gate .z18-auth-panel {
        animation: none;
    }
}

/* ========== Panel portal login ========== */

body.z18-panel-portal {
    --z18-portal-red: #c45c56;
    --z18-portal-red-deep: #b24a44;
    --z18-portal-ink: #3a4048;
    --z18-portal-card: #454c55;
    --z18-portal-hi-vis: #f0c84a;
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(58, 64, 72, .035) 1px, transparent 1px),
        linear-gradient(rgba(58, 64, 72, .035) 1px, transparent 1px),
        #eceef1;
    background-size: 8px 8px, 8px 8px, auto;
    font-family: "Manrope", "Poppins", sans-serif;
}

body.z18-panel-portal .z18-panel-portal-banner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 50%, rgba(255, 255, 255, .12), transparent 24%),
        linear-gradient(180deg, #d06a63 0%, var(--z18-portal-red) 100%);
    box-shadow: 0 4px 18px rgba(178, 74, 68, .22);
}

body.z18-panel-portal .z18-panel-portal-banner-stripes {
    position: absolute;
    inset: auto 0 0;
    height: 7px;
    background: repeating-linear-gradient(
        -45deg,
        #1a1d22 0 10px,
        var(--z18-portal-hi-vis) 10px 20px
    );
    opacity: .95;
}

body.z18-panel-portal .z18-panel-portal-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 22px;
}

body.z18-panel-portal .z18-panel-portal-banner-copy {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.z18-panel-portal .z18-panel-portal-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 8px !important;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff8e7 !important;
    background: rgba(26, 29, 34, .22);
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.z18-panel-portal .z18-panel-portal-eyebrow i {
    color: var(--z18-portal-hi-vis);
    font-size: 13px;
}

body.z18-panel-portal .z18-panel-portal-banner-copy p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

body.z18-panel-portal .z18-panel-portal-banner-copy p:last-child {
    margin-bottom: 0;
    opacity: .92;
}

body.z18-panel-portal .z18-panel-portal-banner-mark {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    place-items: center;
    place-content: center;
    gap: 2px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(26, 29, 34, .35), rgba(58, 64, 72, .28));
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    text-align: center;
}

body.z18-panel-portal .z18-panel-portal-banner-mark img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}

body.z18-panel-portal .z18-panel-portal-banner-mark small {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

body.z18-panel-portal .z18-panel-portal-main {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 150px);
    padding: 36px 16px 48px;
}

body.z18-panel-portal .z18-panel-portal-card {
    position: relative;
    width: min(360px, 100%);
    padding: 38px 28px 24px;
    border-radius: 14px;
    background: var(--z18-portal-card);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, .18),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
}

body.z18-panel-portal .z18-panel-portal-reflect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #1a1d22 0 8px,
        var(--z18-portal-hi-vis) 8px 16px
    );
}

body.z18-panel-portal .z18-panel-portal-lock {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid rgba(240, 200, 74, .35);
    border-radius: 50%;
    color: var(--z18-portal-hi-vis);
    background: #2f343b;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
    font-size: 16px;
}

body.z18-panel-portal .z18-panel-portal-brand {
    margin: 0 0 22px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
    text-align: center;
}

body.z18-panel-portal .z18-panel-portal-helmet {
    display: inline-grid;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    place-items: center;
    vertical-align: -4px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #d06a63, var(--z18-portal-red-deep));
    box-shadow: 0 4px 10px rgba(178, 74, 68, .35);
    font-size: 15px;
}

body.z18-panel-portal .z18-panel-portal-brand span {
    color: #e08b84;
}

body.z18-panel-portal .z18-panel-portal-brand small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.z18-panel-portal .z18-panel-portal-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #ffd0cc;
    background: rgba(194, 79, 71, .22);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

body.z18-panel-portal .z18-panel-portal-form {
    display: grid;
    gap: 12px;
}

body.z18-panel-portal .z18-panel-portal-field {
    position: relative;
    display: block;
}

body.z18-panel-portal .z18-panel-portal-field > i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    color: #c24f47;
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

body.z18-panel-portal .z18-panel-portal-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 40px;
    border: 0;
    border-radius: 8px;
    color: #1f242b;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

body.z18-panel-portal .z18-panel-portal-field input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

body.z18-panel-portal .z18-panel-portal-field input:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(194, 79, 71, .22);
}

body.z18-panel-portal .z18-panel-portal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #d06a63 0%, var(--z18-portal-red-deep) 100%);
    box-shadow: 0 8px 18px rgba(178, 74, 68, .28);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
}

body.z18-panel-portal .z18-panel-portal-submit i {
    font-size: 17px;
}

body.z18-panel-portal .z18-panel-portal-submit:hover {
    filter: brightness(1.05);
}

body.z18-panel-portal .z18-panel-portal-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
}

body.z18-panel-portal .z18-panel-portal-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(26, 29, 34, .28);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.z18-panel-portal .z18-panel-portal-badges i {
    color: var(--z18-portal-hi-vis);
    font-size: 12px;
}

body.z18-panel-portal .z18-panel-portal-note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
}

body.z18-panel-portal .z18-panel-portal-back {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dotted rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.z18-panel-portal .z18-panel-portal-back:hover {
    color: #e8a19b;
}

@media (max-width: 720px) {
    body.z18-panel-portal .z18-panel-portal-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    body.z18-panel-portal .z18-panel-portal-banner-mark {
        order: -1;
    }

    body.z18-panel-portal .z18-panel-portal-main {
        min-height: calc(100vh - 240px);
        padding-top: 28px;
    }
}

/* ========== Player portal login ========== */

body.z18-player-portal {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(196, 92, 86, .14), transparent 55%),
        radial-gradient(ellipse 50% 35% at 80% 90%, rgba(58, 64, 72, .08), transparent 50%),
        linear-gradient(90deg, rgba(58, 64, 72, .04) 1px, transparent 1px),
        linear-gradient(rgba(58, 64, 72, .04) 1px, transparent 1px),
        linear-gradient(180deg, #f3f4f6 0%, #e8eaee 100%);
    background-size: auto, auto, 10px 10px, 10px 10px, auto;
}

body.z18-player-portal .z18-player-portal-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 72%, rgba(240, 200, 74, .08), transparent 28%),
        radial-gradient(circle at 88% 28%, rgba(194, 79, 71, .07), transparent 26%);
}

body.z18-player-portal .z18-panel-portal-banner {
    background:
        radial-gradient(ellipse 60% 120% at 50% -20%, rgba(255, 255, 255, .22), transparent 45%),
        linear-gradient(135deg, #d97870 0%, var(--z18-portal-red) 48%, #a9443f 100%);
    box-shadow:
        0 10px 28px rgba(178, 74, 68, .28),
        inset 0 -1px 0 rgba(0, 0, 0, .08);
}

body.z18-player-portal .z18-panel-portal-banner-inner {
    padding: 28px 0 32px;
}

body.z18-player-portal .z18-panel-portal-banner-copy {
    max-width: 640px;
    gap: 0;
}

body.z18-player-portal .z18-panel-portal-eyebrow {
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

body.z18-player-portal .z18-player-portal-title {
    margin: 0 0 6px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
    line-height: 1.2 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .14);
}

body.z18-player-portal .z18-player-portal-lead {
    max-width: 480px;
    margin: 0 0 14px !important;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    opacity: 1 !important;
}

body.z18-player-portal .z18-player-portal-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

body.z18-player-portal .z18-player-portal-banner-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    color: #fff;
    background: rgba(26, 29, 34, .22);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

body.z18-player-portal .z18-player-portal-banner-actions a.is-primary {
    color: #2a2414;
    border-color: transparent;
    background: linear-gradient(180deg, #f5d56a 0%, var(--z18-portal-hi-vis) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}

body.z18-player-portal .z18-player-portal-banner-actions a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .45);
    background: rgba(26, 29, 34, .34);
    color: #fff;
}

body.z18-player-portal .z18-player-portal-banner-actions a.is-primary:hover {
    color: #2a2414;
    background: linear-gradient(180deg, #ffe08a 0%, #f0c84a 100%);
}

body.z18-player-portal .z18-panel-portal-main {
    min-height: calc(100vh - 210px);
    padding: 44px 16px 56px;
}

body.z18-player-portal .z18-player-portal-card {
    width: min(400px, 100%);
    padding: 36px 30px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 28%),
        linear-gradient(180deg, #4c545e 0%, #3f4650 100%);
    box-shadow:
        0 24px 50px rgba(15, 23, 42, .22),
        0 2px 0 rgba(255, 255, 255, .06) inset;
    animation: z18-player-card-in .45s ease both;
}

@keyframes z18-player-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.z18-player-portal .z18-player-portal-card {
        animation: none;
    }
}

body.z18-player-portal .z18-panel-portal-brand {
    margin-bottom: 24px;
    font-size: 32px;
}

body.z18-player-portal .z18-panel-portal-helmet {
    width: 34px;
    height: 34px;
    margin-right: 8px;
    vertical-align: -6px;
    border-radius: 10px;
    font-size: 17px;
}

body.z18-player-portal .z18-panel-portal-brand small {
    margin-top: 10px;
    letter-spacing: .12em;
}

body.z18-player-portal .z18-panel-portal-alert {
    border-radius: 10px;
}

body.z18-player-portal .z18-panel-portal-alert.is-ok {
    color: #d7f5e4;
    background: rgba(34, 140, 84, .22);
}

body.z18-player-portal .z18-panel-portal-form {
    gap: 13px;
}

body.z18-player-portal .z18-panel-portal-field input {
    min-height: 48px;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    transition: box-shadow .15s ease;
}

body.z18-player-portal .z18-panel-portal-field input:focus {
    box-shadow: 0 0 0 3px rgba(194, 79, 71, .28);
}

body.z18-player-portal .z18-player-portal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

body.z18-player-portal .z18-player-portal-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

body.z18-player-portal .z18-player-portal-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--z18-portal-red-deep);
    cursor: pointer;
}

body.z18-player-portal .z18-player-portal-forgot {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-player-portal .z18-player-portal-forgot:hover {
    color: #f0c84a;
}

body.z18-player-portal .z18-panel-portal-submit {
    min-height: 50px;
    margin-top: 6px;
    border-radius: 10px;
    font-size: 15px;
    letter-spacing: .05em;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

body.z18-player-portal .z18-panel-portal-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(178, 74, 68, .34);
}

body.z18-player-portal .z18-panel-portal-submit:active {
    transform: translateY(0);
}

body.z18-player-portal .z18-player-portal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 4px;
}

body.z18-player-portal .z18-player-portal-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-player-portal .z18-player-portal-links a i {
    color: var(--z18-portal-hi-vis);
    font-size: 14px;
}

body.z18-player-portal .z18-player-portal-links a:hover {
    color: #fff;
}

body.z18-player-portal .z18-player-portal-notif {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    background: rgba(26, 29, 34, .28);
    font-size: 12px;
    font-weight: 600;
}

body.z18-player-portal .z18-player-portal-notif-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #9ca3af;
}

body.z18-player-portal .z18-player-portal-notif-dot.is-on,
body.z18-player-portal .zone18-login-notif-dot.is-on {
    background: #34d399;
}

body.z18-player-portal .z18-player-portal-notif-dot.is-off,
body.z18-player-portal .zone18-login-notif-dot.is-off {
    background: #f87171;
}

body.z18-player-portal .z18-panel-portal-badges {
    margin-top: 18px;
}

body.z18-player-portal .z18-player-portal-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

body.z18-player-portal .z18-player-portal-foot a {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-player-portal .z18-player-portal-foot a:hover {
    color: #e8a19b;
}

@media (max-width: 720px) {
    body.z18-player-portal .z18-player-portal-title {
        font-size: 18px !important;
    }

    body.z18-player-portal .z18-player-portal-lead {
        font-size: 12px !important;
    }

    body.z18-player-portal .z18-panel-portal-banner-inner {
        padding: 22px 0 26px;
    }

    body.z18-player-portal .z18-panel-portal-main {
        min-height: calc(100vh - 260px);
        padding-top: 28px;
    }

    body.z18-player-portal .z18-player-portal-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== Auth portal forms (inscription / recup) ========== */

body.z18-auth-portal-form .z18-auth-portal-card {
    width: min(420px, 100%);
}

body.z18-auth-portal-form .z18-auth-portal-card.is-wide {
    width: min(460px, 100%);
}

body.z18-auth-portal-form a.z18-panel-portal-submit {
    text-decoration: none;
}

body.z18-auth-portal-form .z18-panel-portal-alert.is-err {
    color: #ffd0cc;
    background: rgba(194, 79, 71, .22);
}

body.z18-auth-portal-form .z18-auth-portal-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}

body.z18-auth-portal-form .z18-auth-portal-steps span {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .5);
    background: rgba(26, 29, 34, .28);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
}

body.z18-auth-portal-form .z18-auth-portal-steps span.is-done {
    color: #f5d9d6;
    border-color: rgba(224, 139, 132, .35);
    background: rgba(194, 79, 71, .2);
}

body.z18-auth-portal-form .z18-auth-portal-steps span.is-current {
    color: #2a2414;
    border-color: transparent;
    background: linear-gradient(180deg, #f5d56a 0%, var(--z18-portal-hi-vis) 100%);
}

body.z18-auth-portal-form .z18-auth-portal-info {
    margin: 0 0 16px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: rgba(255, 255, 255, .82);
    background: rgba(26, 29, 34, .28);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

body.z18-auth-portal-form .z18-auth-portal-info p {
    margin: 0 0 12px;
}

body.z18-auth-portal-form .z18-auth-portal-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f0c84a;
    font-weight: 800;
    text-decoration: none;
}

body.z18-auth-portal-form .z18-auth-portal-info a:hover {
    color: #ffe08a;
}

body.z18-auth-portal-form .z18-auth-portal-info.is-success {
    color: #d7f5e4;
    background: rgba(34, 140, 84, .22);
}

body.z18-auth-portal-form .z18-auth-portal-info strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 15px;
}

body.z18-auth-portal-form .z18-auth-portal-group {
    display: grid;
    gap: 12px;
    margin: 0 0 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(26, 29, 34, .18);
}

body.z18-auth-portal-form .z18-auth-portal-group h3 {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.z18-auth-portal-form .z18-auth-portal-help {
    margin: -4px 0 0;
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

body.z18-auth-portal-form .z18-auth-portal-captcha {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

body.z18-auth-portal-form .z18-auth-portal-captcha-q {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 10px;
    color: #2a2414;
    background: linear-gradient(180deg, #f5d56a 0%, var(--z18-portal-hi-vis) 100%);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}

body.z18-auth-portal-form .z18-auth-portal-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    color: rgba(255, 255, 255, .78);
    background: rgba(26, 29, 34, .28);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

body.z18-auth-portal-form .z18-auth-portal-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(26, 29, 34, .4);
}

body.z18-auth-portal-form .z18-auth-portal-legal {
    align-items: flex-start;
    margin-top: 2px;
    line-height: 1.4;
}

body.z18-auth-portal-form .z18-auth-portal-legal a {
    color: #f0c84a;
    font-weight: 800;
    text-decoration: none;
}

body.z18-auth-portal-form .z18-auth-portal-legal a:hover {
    color: #ffe08a;
}

body.z18-auth-portal-form .z18-auth-portal-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 720px) {
    body.z18-auth-portal-form .z18-auth-portal-steps {
        gap: 6px;
    }

    body.z18-auth-portal-form .z18-auth-portal-steps span {
        font-size: 9px;
        padding: 0 4px;
    }

    body.z18-auth-portal-form .z18-auth-portal-captcha {
        grid-template-columns: 1fr;
    }
}

/* ========== Inscription ========== */

body.z18-auth-register .z18-auth-register-inner {
    width: min(480px, 100%);
}

body.z18-auth-register .z18-auth-panel {
    align-items: start;
    overflow-y: auto;
}

body.z18-auth-register .z18-auth-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}

body.z18-auth-register .z18-auth-steps span {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #9ca3af;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

body.z18-auth-register .z18-auth-steps span.is-done {
    border-color: rgba(229, 72, 63, .25);
    color: #e5483f;
    background: rgba(229, 72, 63, .08);
}

body.z18-auth-register .z18-auth-steps span.is-current {
    border-color: #e5483f;
    color: #fff;
    background: #e5483f;
}

body.z18-auth-register .z18-auth-card {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    background: #fff;
    line-height: 1.5;
}

body.z18-auth-register .z18-auth-card.is-success {
    border-color: rgba(10, 179, 156, .28);
    color: #0b7668;
    background: rgba(10, 179, 156, .1);
}

body.z18-auth-register .z18-auth-card strong {
    display: block;
    margin-bottom: 6px;
    color: inherit;
}

body.z18-auth-register .z18-auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid #d5d9e0;
    border-radius: 9px;
    color: #1f242b;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-auth-register .z18-auth-fieldset {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

body.z18-auth-register .z18-auth-fieldset h3 {
    margin: 0;
    color: #1f242b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.z18-auth-register .z18-auth-help {
    margin: -4px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

body.z18-auth-register .z18-auth-captcha-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

body.z18-auth-register .z18-auth-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    color: #fff;
    background: #1f242b;
    font-size: 18px;
    font-weight: 800;
}

body.z18-auth-register .z18-auth-check-block {
    align-items: flex-start;
    line-height: 1.45;
}

body.z18-auth-register .z18-auth-check-block a {
    color: #e5483f;
    font-weight: 700;
    text-decoration: none;
}

body.z18-auth-register .z18-auth-submit.is-ghost {
    color: #4b5563;
    background: transparent;
    border: 1px solid #d5d9e0;
    box-shadow: none;
}

body.z18-auth-register a.z18-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

body.z18-auth-register .z18-auth-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

@media (max-width: 520px) {
    body.z18-auth-register .z18-auth-steps {
        grid-template-columns: 1fr;
    }

    body.z18-auth-register .z18-auth-captcha-row {
        grid-template-columns: 1fr;
    }
}

/* ========== Pages légales / support public ========== */

body.z18-auth-legal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #343a40;
    background:
        radial-gradient(circle at 12% 0%, rgba(229, 72, 63, .08), transparent 28%),
        #f3f3f9;
}

body.z18-auth-legal .z18-legal-top {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: #1f242b;
}

body.z18-auth-legal .z18-legal-top-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 64px;
}

body.z18-auth-legal .z18-legal-brand {
    flex: 0 0 auto;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
}

body.z18-auth-legal .z18-legal-brand span {
    color: #e5483f;
}

body.z18-auth-legal .z18-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    flex: 1 1 auto;
}

body.z18-auth-legal .z18-legal-nav a {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.z18-auth-legal .z18-legal-nav a:hover,
body.z18-auth-legal .z18-legal-nav a.is-active {
    color: #fff;
}

body.z18-auth-legal .z18-legal-nav a.is-active {
    box-shadow: inset 0 -2px 0 #e5483f;
}

body.z18-auth-legal .z18-legal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

body.z18-auth-legal .z18-legal-actions a {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-auth-legal .z18-legal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    color: #fff !important;
    background: #e5483f;
}

body.z18-auth-legal .z18-legal-main {
    flex: 1 1 auto;
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 40px;
}

body.z18-auth-legal .z18-legal-shell {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

body.z18-auth-legal .z18-legal-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef0f3;
}

body.z18-auth-legal .z18-legal-head h1 {
    margin: 0 0 8px;
    color: #1f242b;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
}

body.z18-auth-legal .z18-legal-lead {
    margin: 0;
    max-width: 62ch;
    color: #6b7280;
    line-height: 1.55;
}

body.z18-auth-legal .z18-legal-intro {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(229, 72, 63, .18);
    border-left: 4px solid #e5483f;
    border-radius: 10px;
    color: #4b5563;
    background: rgba(229, 72, 63, .06);
    line-height: 1.55;
}

body.z18-auth-legal .z18-legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
}

body.z18-auth-legal .z18-legal-toc {
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

body.z18-auth-legal .z18-legal-toc strong {
    display: block;
    margin-bottom: 10px;
    color: #1f242b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.z18-auth-legal .z18-legal-toc a {
    display: block;
    padding: 6px 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.z18-auth-legal .z18-legal-toc a:hover {
    color: #e5483f;
}

body.z18-auth-legal .z18-legal-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef0f3;
}

body.z18-auth-legal .z18-legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

body.z18-auth-legal .z18-legal-section h2 {
    margin: 0 0 12px;
    color: #1f242b;
    font-size: 18px;
    font-weight: 800;
}

body.z18-auth-legal .z18-legal-section p,
body.z18-auth-legal .z18-legal-section li {
    color: #4b5563;
    line-height: 1.6;
}

body.z18-auth-legal .z18-legal-section p {
    margin: 0 0 10px;
}

body.z18-auth-legal .z18-legal-section ul {
    margin: 0 0 10px;
    padding: 0 0 0 18px;
}

body.z18-auth-legal .z18-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

body.z18-auth-legal .z18-legal-links a,
body.z18-auth-legal .z18-support-card a.z18-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d5d9e0;
    border-radius: 9px;
    color: #1f242b;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.z18-auth-legal .z18-legal-links a.is-primary,
body.z18-auth-legal .z18-support-card a.z18-legal-btn.is-primary {
    border-color: #e5483f;
    color: #fff;
    background: #e5483f;
}

body.z18-auth-legal .z18-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.z18-auth-legal .z18-support-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

body.z18-auth-legal .z18-support-card h2 {
    margin: 0;
    color: #1f242b;
    font-size: 17px;
    font-weight: 800;
}

body.z18-auth-legal .z18-support-card p {
    margin: 0;
    flex: 1 1 auto;
    color: #6b7280;
    line-height: 1.5;
}

body.z18-auth-legal .z18-legal-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 18px 16px 28px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

body.z18-auth-legal .z18-legal-foot a {
    color: #4b5563;
    text-decoration: none;
}

body.z18-auth-legal .z18-legal-foot a:hover {
    color: #e5483f;
}

@media (max-width: 900px) {
    body.z18-auth-legal .z18-legal-layout,
    body.z18-auth-legal .z18-support-grid {
        grid-template-columns: 1fr;
    }

    body.z18-auth-legal .z18-legal-toc {
        position: static;
    }
}

@media (max-width: 760px) {
    body.z18-auth-legal .z18-legal-top-inner {
        flex-wrap: wrap;
        padding: 12px 0;
        min-height: 0;
    }

    body.z18-auth-legal .z18-legal-nav {
        order: 3;
        width: 100%;
    }

    body.z18-auth-legal .z18-legal-actions {
        margin-left: auto;
    }
}

body.z18-auth-legal .z18-auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    background: #f8fafc;
    line-height: 1.45;
}

body.z18-auth-legal .z18-auth-alert.is-err {
    border-color: rgba(229, 72, 63, .28);
    color: #b42318;
    background: rgba(229, 72, 63, .1);
}

body.z18-auth-legal .z18-auth-alert.is-ok {
    border-color: rgba(10, 179, 156, .28);
    color: #0b7668;
    background: rgba(10, 179, 156, .1);
}

body.z18-auth-legal .z18-legal-form {
    display: grid;
    gap: 14px;
}

body.z18-auth-legal .z18-auth-fieldset {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

body.z18-auth-legal .z18-auth-fieldset h3 {
    margin: 0;
    color: #1f242b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.z18-auth-legal .z18-auth-field {
    display: grid;
    gap: 6px;
}

body.z18-auth-legal .z18-auth-field > span {
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

body.z18-auth-legal .z18-auth-field input,
body.z18-auth-legal .z18-auth-field select,
body.z18-auth-legal .z18-auth-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5d9e0;
    border-radius: 9px;
    color: #1f242b;
    background: #fff;
    font: inherit;
}

body.z18-auth-legal .z18-auth-field textarea {
    min-height: 140px;
    resize: vertical;
}

body.z18-auth-legal .z18-auth-field input:focus,
body.z18-auth-legal .z18-auth-field select:focus,
body.z18-auth-legal .z18-auth-field textarea:focus {
    border-color: rgba(229, 72, 63, .55);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(229, 72, 63, .12);
}

body.z18-auth-legal .z18-auth-captcha-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

body.z18-auth-legal .z18-auth-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    color: #fff;
    background: #1f242b;
    font-size: 18px;
    font-weight: 800;
}

body.z18-auth-legal .z18-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #e5483f;
    box-shadow: 0 10px 24px rgba(229, 72, 63, .22);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

body.z18-auth-legal .z18-auth-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

@media (max-width: 520px) {
    body.z18-auth-legal .z18-auth-captcha-row {
        grid-template-columns: 1fr;
    }
}
