/* ==========================================================================
   EvalNumérique — Pages d'accès (connexion, inscriptions)
   Mise en page partagée par les trois portes d'entrée.
   À charger APRÈS theme.css.
   ========================================================================== */

.auth {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr;
}

/* ---------- Panneau d'encre ---------- */
.auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.6rem var(--gutter);
    color: #fff;
    background:
        radial-gradient(70% 60% at 10% 4%,  rgba(201,162,39,.28) 0%, transparent 62%),
        radial-gradient(55% 50% at 92% 22%, rgba(21,150,133,.24) 0%, transparent 60%),
        radial-gradient(80% 70% at 46% 106%, rgba(76,58,140,.32) 0%, transparent 66%),
        linear-gradient(165deg, var(--ink-800) 0%, var(--ink-900) 60%, #05090F 100%);
}
/* Le réseau de lignes, repris du héros de l'accueil. */
.auth-aside::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(120% 90% at 20% 30%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(120% 90% at 20% 30%, #000 20%, transparent 80%);
}
.auth-aside > * { position: relative; z-index: 2; }

.auth-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; align-self: flex-start; }
.auth-brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--gold-400), var(--gold-600));
    color: var(--ink-900); font-size: 1.02rem;
    box-shadow: var(--e-gold);
}
.auth-brand-word { color: #fff; font-size: 1.16rem; font-weight: 800; letter-spacing: -.03em; }
.auth-brand-word span { font-weight: 400; opacity: .6; }

/* Le discours n'apparaît qu'à partir du bureau : sur mobile,
   le panneau se réduit à un simple bandeau de marque. */
.auth-pitch { display: none; }

.auth-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 3.4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -.015em;
    color: #fff;
    margin: 0 0 1.1rem;
}
.auth-title em {
    font-style: italic;
    background: linear-gradient(96deg, var(--gold-300), var(--gold-500) 55%, var(--gold-300));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-lede { color: rgba(255,255,255,.66); font-size: 1rem; line-height: 1.65; max-width: 36ch; margin: 0 0 2.2rem; }

.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .95rem; }
.auth-points li { display: flex; align-items: flex-start; gap: .8rem; color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.5; }
.auth-points i { color: var(--gold-400); font-size: .82rem; margin-top: .3rem; flex: 0 0 auto; }

.auth-foot { margin-top: auto; padding-top: 2rem; color: rgba(255,255,255,.38); font-size: .8rem; }

/* ---------- Colonne du formulaire ---------- */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem) var(--gutter);
    background: var(--paper);
}
.auth-card { width: 100%; max-width: 27rem; }
.auth-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -.03em;
    margin: .4rem 0 .5rem;
}
.auth-card > p.auth-sub { color: var(--ink-400); font-size: .95rem; margin: 0 0 2rem; }

/* ---------- Champs ---------- */
.champ { margin-bottom: 1.15rem; }
.champ label {
    display: block;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink-500);
    margin-bottom: .45rem;
}
.champ input {
    width: 100%;
    padding: .82rem 1rem;
    border: 1.5px solid var(--hairline-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink-900);
    font-family: var(--font-ui);
    font-size: .96rem;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.champ input::placeholder { color: var(--ink-200); }
.champ input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}
.champ-aide { display: block; margin-top: .4rem; font-size: .8rem; color: var(--ink-400); }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }

/* Le code de classe et le code à usage unique : saisie caractère par caractère. */
.champ input.code-saisie {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 1.25rem;
    letter-spacing: .38em;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold-700);
    background: var(--gold-050);
    border-color: var(--gold-300);
}
.champ input.code-saisie:focus { background: var(--surface); }

/* ---------- Onglets de la connexion ---------- */
.auth-seg {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    gap: 4px;
    margin-bottom: 1.8rem;
}
.auth-seg button {
    flex: 1;
    padding: .6rem .8rem;
    border: 0; border-radius: 999px;
    background: transparent;
    color: var(--ink-500);
    font-family: var(--font-ui); font-size: .87rem; font-weight: 600;
    cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.auth-seg button[aria-selected="true"] {
    background: var(--surface); color: var(--ink-900); box-shadow: var(--e1);
}

/* ---------- Divers ---------- */
.auth-retour {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--ink-400); text-decoration: none;
    font-size: .85rem; font-weight: 600;
    transition: color .25s var(--ease);
}
.auth-retour:hover { color: var(--ink-900); }

.auth-bascule {
    margin-top: 1.8rem; padding-top: 1.4rem;
    border-top: 1px solid var(--hairline);
    text-align: center;
    color: var(--ink-400); font-size: .9rem;
}
.auth-bascule a { color: var(--ink-900); font-weight: 700; text-decoration: none; }
.auth-bascule a:hover { color: var(--gold-700); }

.auth-note {
    display: flex; gap: .75rem;
    padding: .9rem 1rem;
    border-radius: var(--r-sm);
    background: var(--gold-050);
    border: 1px solid var(--gold-300);
    color: var(--gold-700);
    font-size: .85rem; line-height: 1.55;
    margin-bottom: 1.6rem;
}
.auth-note i { margin-top: .18rem; flex: 0 0 auto; }

/* ---------- Utilitaires ----------
   Ces trois pages ne chargent volontairement ni Bootstrap ni MDB : elles
   n'en avaient besoin que pour une poignée de classes d'espacement, que
   voici. Cela leur épargne ~600 Ko de CSS au chargement. */
.d-block { display: block; }
.d-flex  { display: flex; }
.gap-2   { gap: .5rem; }
.mt-2    { margin-top: .5rem; }
.mt-4    { margin-top: 1.5rem; }
.mb-4    { margin-bottom: 1.5rem; }
.me-1    { margin-right: .25rem; }

/* ---------- Bureau ---------- */
@media (min-width: 992px) {
    .auth { grid-template-columns: 46% 1fr; }
    .auth-aside { padding: 2.8rem 3rem; }
    .auth-pitch { display: block; margin-top: auto; padding-top: 3rem; }
}
