/* Pages d'authentification — look repris de bpkl/templates/login.php */

    /* ── Reset body ───────────────────────────────────────── */
    body.pk-auth {
        background: #070a12;
        min-height: 100vh;
        margin: 0;
    }

    /* ── Lumière d'aréna (radial glow en haut, très subtil) ─ */
    .lp-arena {
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse 100% 55% at 50% -8%, rgba(30,120,255,.15) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    /* ── Wrapper central ──────────────────────────────────── */
    .lp-wrap {
        position: relative;
        z-index: 1;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* « safe » : un contenu plus haut que l'écran (téléphone, clavier ouvert) commence en haut au lieu de déborder
           sous la barre d'état. */
        justify-content: safe center;
        padding: 56px 16px 72px;
    }

    /* ── Logo ─────────────────────────────────────────────── */
    .lp-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        margin-bottom: 40px;
    }
    .lp-logo img {
        filter: drop-shadow(0 0 12px rgba(30,120,255,.4));
    }
    .lp-logo-text {
        font-family: 'Archivo', sans-serif;
        font-weight: 900;
        font-size: 26px;
        letter-spacing: 4px;
        color: #fff;
        line-height: 1;
    }

    /* ── Card formulaire ──────────────────────────────────── */
    .lp-card {
        width: 100%;
        max-width: 400px;
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 16px;
        padding: 40px 36px 38px;
        /* Signature : ligne bleue en bas — comme la ligne bleue d'une patinoire */
        box-shadow:
            0 2px 0 0 var(--accent),
            0 8px 48px -8px rgba(30,120,255,.4),
            0 32px 64px -32px rgba(0,0,0,.7);
    }
    .lp-eyebrow {
        font-family: 'Hanken Grotesk', sans-serif;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 2.2px;
        text-transform: uppercase;
        color: rgba(255,255,255,.62);
        margin-bottom: 28px;
    }

    /* ── Erreur ───────────────────────────────────────────── */
    .lp-error {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(239,68,68,.08);
        border: 1px solid rgba(239,68,68,.22);
        border-radius: 8px;
        padding: 10px 14px;
        color: #f87171;
        font-family: 'Hanken Grotesk', sans-serif;
        font-size: 13px;
        margin-bottom: 22px;
    }

    /* ── Champs ───────────────────────────────────────────── */
    .lp-field {
        margin-bottom: 22px;
    }
    .lp-label {
        display: block;
        font-family: 'Hanken Grotesk', sans-serif;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        color: rgba(255,255,255,.62);
        margin-bottom: 8px;
    }
    .lp-input {
        display: block;
        width: 100%;
        background: rgba(255,255,255,.05);
        border: none;
        border-bottom: 1.5px solid rgba(255,255,255,.12);
        border-radius: 8px 8px 0 0;
        padding: 12px 14px;
        color: #fff;
        font-family: 'Hanken Grotesk', sans-serif;
        font-size: 15px;
        outline: none;
        transition: border-color .2s, background .2s;
        box-sizing: border-box;
    }
    .lp-input:focus {
        background: rgba(30,120,255,.06);
        border-bottom-color: var(--accent);
    }
    .lp-input:-webkit-autofill,
    .lp-input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 100px #0c1120 inset;
        -webkit-text-fill-color: #fff;
        transition: background-color 5000s ease-in-out 0s;
    }

    /* ── Bouton ───────────────────────────────────────────── */
    .lp-btn {
        display: block;
        width: 100%;
        background: var(--accent-fill);
        border: none;
        border-radius: 8px;
        padding: 14px;
        color: #fff;
        font-family: 'Archivo', sans-serif;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
        margin-top: 30px;
        transition: background .18s, transform .1s, box-shadow .18s;
    }
    .lp-btn:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 8px 24px -6px rgba(30,120,255,.55);
    }
    .lp-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

    
    /* ── Ajouts Puckera ───────────────────────────────────── */
    .lp-logo { color:#fff; }
    .lp-logo .pk-wordmark { font-size: 26px; letter-spacing: 4px; }
    .lp-message { color: rgba(255,255,255,.7); font-size: 15px; margin: 0; }
    .lp-footer { margin-top: 28px; }
    @media (max-width: 480px) { .lp-card { padding: 32px 22px 28px; } }
    .lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .lp-hint { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 6px; }
    .lp-field-error { font-size: 12px; color: #f87171; margin-top: 6px; }
    .lp-input.is-invalid { border-bottom-color: #f87171; }
    .lp-link { display: block; text-align: center; margin-top: 22px; color: rgba(255,255,255,.62); font-size: 13px; text-decoration: none; }
    .lp-link:hover { color: #fff; }
    .lp-link-inline { text-align: right; margin: -8px 0 0; font-size: 12px; }
    .lp-ok { background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); border-radius: 8px; padding: 10px 14px; color: #6ee7b7; font-size: 13px; margin-bottom: 22px; }
    .lp-error { color: #f87171; }
    .lp-pool-name { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 26px; color: #fff; margin: 6px 0 4px; }
    .lp-message.small { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 22px; }
    /* Case à cocher (infolettre à l'inscription, page de gestion des abonnements) */
    .lp-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; cursor: pointer; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.45; }
    .lp-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
    .lp-check strong { display: block; color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
    .lp-check + .lp-check { margin-top: -6px; }
    a.lp-btn { display: block; text-align: center; text-decoration: none; }
    .lp-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
    .lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
    [data-passkey-only][hidden], [data-passkey-msg][hidden] { display: none !important; }
    /* Connexion avec un fournisseur (issue #128) : boutons aux chartes de Google, Apple, Facebook, Microsoft et Discord. */
    .lp-social { display: grid; gap: 10px; margin-bottom: 4px; }
    .lp-sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px;
        border-radius: 8px; border: 1px solid var(--sb-line); background: var(--sb-bg); color: var(--sb-fg); cursor: pointer;
        font-family: 'Hanken Grotesk', system-ui, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; transition: filter .15s, transform .1s; }
    .lp-sbtn:hover { filter: brightness(.95); transform: translateY(-1px); }
    .lp-sbtn:active { transform: none; }
    .lp-sbtn-ic { display: inline-flex; flex: none; }
    .lp-sbtn.is-google { --sb-bg: var(--brand-google-bg); --sb-fg: var(--brand-google-fg); --sb-line: var(--brand-google-line); }
    .lp-sbtn.is-apple { --sb-bg: var(--brand-apple-bg); --sb-fg: var(--brand-apple-fg); --sb-line: var(--brand-apple-line); }
    .lp-sbtn.is-facebook { --sb-bg: var(--brand-facebook-bg); --sb-fg: var(--brand-facebook-fg); --sb-line: var(--brand-facebook-line); }
    .lp-sbtn.is-microsoft { --sb-bg: var(--brand-microsoft-bg); --sb-fg: var(--brand-microsoft-fg); --sb-line: var(--brand-microsoft-line); }
    .lp-sbtn.is-discord { --sb-bg: var(--brand-discord-bg); --sb-fg: var(--brand-discord-fg); --sb-line: var(--brand-discord-line); }
    .lp-sbtn.is-fake { --sb-bg: transparent; --sb-fg: rgba(255,255,255,.8); --sb-line: rgba(255,255,255,.3); border-style: dashed; }
    .lp-social [data-social-msg][hidden] { display: none; }
    /* App mobile : boutons seulement si la version de l'app sait faire la connexion native (puckera-social.js). */
    html.pk-app .pk-social { display: none; }
    html.pk-app.pk-app-social .pk-social { display: grid; }
    .lp-title { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px; color: #fff; margin: 4px 0 10px; }
    .lp-static { color: #fff; font-size: 15px; padding: 8px 0 4px; overflow-wrap: anywhere; }
    .lp-btn-ghost { background: transparent !important; border: 1px solid rgba(255,255,255,.18) !important; color: rgba(255,255,255,.75) !important; box-shadow: none !important; margin-top: 10px; }
    .lp-btn-ghost:hover { border-color: rgba(255,255,255,.4) !important; color: #fff !important; }

/* Pages d'erreur : grand code en dégradé */
.lp-err-code {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 10px;
    background: linear-gradient(120deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mise en page en deux volets (marque | formulaire) sur grand écran */
.lp-split { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.lp-aside { display: none; }
.lp-back { align-self: flex-start; margin-bottom: 18px; font-size: 13px; color: var(--text2); text-decoration: none; }
.lp-back:hover { color: var(--text); }
@media (min-width: 992px) {
    .lp-split { grid-template-columns: 1.05fr 1fr; }
    .lp-aside { display: flex; position: relative; overflow: hidden; align-items: center; padding: 64px; border-right: 1px solid var(--border);
        background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30,120,255,.22), transparent 70%), var(--bg2); }
    .lp-aside::after { content: ''; position: absolute; inset: 0; pointer-events: none;
        background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px;
        -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%); mask-image: linear-gradient(160deg, #000, transparent 75%); }
    .lp-aside-symbol { position: absolute; width: 520px; right: -140px; bottom: -120px; opacity: .07; transform: rotate(-10deg); }
    .lp-aside-copy { position: relative; z-index: 1; max-width: 460px; }
    .lp-aside-kicker { font: 800 12px 'Archivo', sans-serif; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent); }
    .lp-aside-title { font: 900 46px/1.04 'Archivo', sans-serif; letter-spacing: -1.4px; margin: 16px 0 30px; color: var(--text); }
    .lp-aside-title span { background: linear-gradient(100deg, var(--accent), #5EA2FF 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .lp-aside-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
    .lp-aside-list li { padding-left: 18px; border-left: 2px solid var(--accent-line); }
    .lp-aside-list b { display: block; font: 800 15px 'Archivo', sans-serif; color: var(--text); }
    .lp-aside-list span { display: block; font-size: 13.5px; color: var(--text2); margin-top: 2px; }
    .lp-split .lp-wrap { min-height: 100vh; }
}

/* Accueil de l'app mobile (/app) : une seule colonne centrée, sans la colonne d'accroche du bureau. */
.pk-app-welcome .lp-aside { display: none; }
.pk-app-welcome .lp-split { grid-template-columns: 1fr; }
.pk-aw { text-align: left; }
.pk-aw-title { font: 800 26px/1.15 'Archivo', sans-serif; color: var(--text); margin: 0 0 8px; letter-spacing: -.01em; }
.pk-aw-sub { color: var(--text2); margin: 0 0 18px; line-height: 1.45; }
.pk-aw-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.pk-aw-list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.pk-aw-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-weak); color: var(--accent); }
.pk-aw-ico .pk-ico { width: 18px; height: 18px; }
.pk-aw .lp-btn { width: 100%; }
.pk-aw-demo { display: block; text-align: center; margin-top: 16px; color: var(--accent); font-weight: 600; text-decoration: none; }
.pk-aw-demo:hover { text-decoration: underline; }
