/* Pages d'authentification MyEvent (connexion, mot de passe oublié…) — CSS dédié, sans build. */
:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-bg: #f8fafc;
    --auth-danger: #dc2626;
}

.auth-body {
    margin: 0;
    font-family: Figtree, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--auth-ink);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
}

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

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

@media (min-width: 992px) {
    .auth-shell { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ---------- Logo ---------- */
.brand-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.brand-logo__icon svg { width: 30px; height: 30px; }
.brand-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-logo__name { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--auth-ink); }
.brand-logo__by { font-size: .72rem; font-weight: 500; color: var(--auth-muted); margin-top: 3px; }
.brand-logo__by strong { color: var(--auth-primary); font-weight: 700; }
.brand-logo--light .brand-logo__name { color: #fff; }
.brand-logo--light .brand-logo__by { color: rgba(255, 255, 255, .7); }
.brand-logo--light .brand-logo__by strong { color: #fff; }
.brand-logo--light .brand-logo__icon { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- Panneau de marque (gauche) ---------- */
.auth-aside {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 56px 64px;
    color: #fff;
    background:
        radial-gradient(1200px 600px at -10% -10%, rgba(99, 102, 241, .55), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(14, 165, 233, .45), transparent 55%),
        linear-gradient(160deg, #0b1b4d 0%, #1e3a8a 55%, #1d4ed8 100%);
}
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside::after {
    content: ""; position: absolute; right: -140px; top: 18%; width: 420px; height: 420px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 130px rgba(255, 255, 255, .025);
    pointer-events: none;
}
.auth-aside__title { font-size: 2.35rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; max-width: 460px; }
.auth-aside__lead { font-size: 1.05rem; color: rgba(255, 255, 255, .78); max-width: 440px; margin: 0 0 34px; line-height: 1.55; }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 460px; position: relative; z-index: 1; }
.auth-features li { display: flex; gap: 14px; align-items: flex-start; }
.auth-features__icon {
    flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.auth-features__icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-features strong { display: block; font-size: .98rem; font-weight: 700; }
.auth-features span { font-size: .88rem; color: rgba(255, 255, 255, .72); }
.auth-aside__foot { font-size: .82rem; color: rgba(255, 255, 255, .6); position: relative; z-index: 1; }

/* ---------- Colonne formulaire (droite) ---------- */
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 20px; }
.auth-mobile-logo { margin-bottom: 28px; }
@media (min-width: 992px) { .auth-mobile-logo { display: none; } }

.auth-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 36px 34px 30px;
    border: 1px solid var(--auth-line); box-shadow: 0 20px 45px -20px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .04);
}
@media (max-width: 480px) { .auth-card { padding: 28px 22px 24px; } }
.auth-card__title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card__subtitle { color: var(--auth-muted); font-size: .95rem; margin: 0 0 26px; line-height: 1.5; }
.auth-footer { margin-top: 26px; font-size: .8rem; color: var(--auth-muted); text-align: center; }
.auth-footer a { color: var(--auth-primary); text-decoration: none; font-weight: 600; }

/* Champs (surcharge les classes des composants Blade) */
.auth-form label.auth-label { display: block; font-size: .82rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.auth-field { margin-top: 18px; }
.auth-field:first-of-type { margin-top: 0; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > svg.auth-input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
    stroke: #94a3b8; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] {
    width: 100%; box-sizing: border-box; height: 46px; padding: 0 44px 0 42px; border: 1.5px solid var(--auth-line);
    border-radius: 11px; background: #f8fafc; font-size: .95rem; color: var(--auth-ink); transition: border-color .15s, box-shadow .15s, background .15s;
    margin-top: 0;
}
.auth-form input::placeholder { color: #a3aec0; }
.auth-form input:focus { outline: none; background: #fff; border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.auth-form input.is-invalid { border-color: var(--auth-danger); }
.auth-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent;
    border-radius: 8px; cursor: pointer; color: #94a3b8; display: flex; align-items: center; justify-content: center; padding: 0;
}
.auth-toggle:hover { color: var(--auth-primary); background: #eff6ff; }
.auth-toggle svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-error { margin: 6px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--auth-danger); }
.auth-status { margin-bottom: 18px; padding: 11px 14px; border-radius: 10px; font-size: .88rem; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #475569; cursor: pointer; }
.auth-check input[type="checkbox"] { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #cbd5e1; accent-color: var(--auth-primary); margin: 0; }
.auth-link { font-size: .88rem; font-weight: 600; color: var(--auth-primary); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-submit {
    width: 100%; margin-top: 24px; height: 48px; border: 0; border-radius: 11px; cursor: pointer; font-size: .98rem; font-weight: 700;
    color: #fff; background: linear-gradient(180deg, #3b82f6, var(--auth-primary-dark)); letter-spacing: .01em;
    box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .6); transition: transform .12s, box-shadow .12s, filter .12s;
}
.auth-submit:hover { filter: brightness(1.06); box-shadow: 0 14px 24px -8px rgba(37, 99, 235, .65); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }

/* Les autres pages d'authentification gardent leurs composants : on les harmonise */
.auth-card .auth-form-generic button[type="submit"], .auth-card form > div button[type="submit"] { border-radius: 11px; }

/* ---------- Inscription / assistant de démarrage ---------- */
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ob-steps { list-style: none; display: flex; gap: 10px; margin: 0 0 22px; padding: 0; }
.ob-step {
    display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #94a3b8;
    padding: 6px 12px 6px 6px; border-radius: 999px; background: #f1f5f9; transition: background .2s, color .2s;
}
.ob-step span {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
    background: #cbd5e1; color: #fff; font-size: .75rem; font-weight: 800;
}
.ob-step.is-active { background: #eff6ff; color: var(--auth-primary-dark); }
.ob-step.is-active span { background: var(--auth-primary); }
.ob-step.is-done { color: #166534; background: #f0fdf4; }
.ob-step.is-done span { background: #16a34a; }
.ob-optional { font-weight: 500; color: var(--auth-muted); }
.ob-drop {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: 130px; padding: 16px; cursor: pointer;
    border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; text-align: center; transition: border-color .15s, background .15s;
}
.ob-drop:hover { border-color: var(--auth-primary); background: #eff6ff; }
.ob-drop__hint { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: #475569; }
.ob-drop__hint svg { width: 26px; height: 26px; stroke: var(--auth-primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ob-drop__hint small { font-weight: 500; color: var(--auth-muted); font-size: .76rem; }
.ob-drop__preview { max-height: 96px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.ob-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ob-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--auth-line); color: #475569; font-size: .84rem; line-height: 1.5; }
.ob-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ob-actions .auth-submit { margin-top: 0; flex: 1; }
.ob-back { height: 48px; padding: 0 18px; border-radius: 11px; border: 1.5px solid var(--auth-line); background: #fff; color: #475569; font-weight: 700; cursor: pointer; }
.ob-back:hover { background: #f8fafc; }
.auth-form [hidden], .auth-card [hidden] { display: none !important; }
