/**
 * KOREV Evidence — Login Page (State of the art)
 * Split layout : panneau marque (gauche) + panneau formulaire (droite)
 * 100 % auto-hébergé : aucune ressource externe (CSP self + RGPD).
 * Toutes les animations sont désactivées via prefers-reduced-motion.
 */

/* ── Tokens ──
   Alias du système PRISM Foundation (webui/css/prism-design-system.css) :
   la page de connexion ne charge pas le design system complet (CSP self,
   page autonome), les valeurs sont donc recopiées à l'identique. Toute
   évolution de palette doit être reportée ici ET dans --prism-*. */
:root {
    --ev-bg-deep: #08080a;
    --ev-bg-base: #0d0d0f;              /* --prism-bg-base */
    --ev-bg-surface: #141418;           /* --prism-bg-surface */
    --ev-bg-surface-2: #1a1a1f;         /* --prism-bg-surface-2 */
    --ev-bg-surface-3: #1e1e24;         /* --prism-bg-elevated */
    --ev-border: rgba(255, 255, 255, 0.08);        /* --prism-border */
    --ev-border-hover: rgba(255, 255, 255, 0.12);  /* --prism-border-strong */
    --ev-border-focus: rgba(99, 102, 241, 0.5);
    --ev-text-primary: #e8e8ec;         /* --prism-text-primary */
    --ev-text-secondary: #8a8a94;       /* --prism-text-secondary */
    --ev-text-muted: #5a5a64;           /* --prism-text-muted */
    --ev-accent: #6366f1;               /* --prism-accent */
    --ev-accent-bright: #818cf8;
    --ev-accent-2: #8b5cf6;
    --ev-accent-3: #c9a04e;             /* --prism-gold (remplace le cyan hors charte) */
    --ev-gold: #c9a04e;
    --ev-accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); /* --prism-accent-gradient */
    --ev-accent-glow: rgba(99, 102, 241, 0.15);
    --ev-radius: 10px;                  /* --prism-radius-md */
    --ev-radius-lg: 14px;               /* --prism-radius-lg */
    --ev-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ev-font-body: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ev-font-mono: 'Roboto Mono', 'SF Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--ev-bg-deep);
    color: var(--ev-text-primary);
    font-family: var(--ev-font-body);
    min-height: 100vh;
    /* Scroll vertical autorisé en secours sur petits écrans */
    overflow-x: hidden;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * FOND ANIMÉ — aurora + grain + grille
 * Couche fixe sous tout le contenu. Uniquement des transforms/opacity
 * (compositées GPU) pour ne pas déclencher de layout/paint en continu.
 * ═══════════════════════════════════════════════════════════════════════════ */
.ev-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ev-aurora {
    position: absolute;
    width: 55vmax;
    height: 55vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.32;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.ev-aurora--1 {
    top: -18vmax;
    left: -12vmax;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.55) 0%, transparent 65%);
    animation: auroraDrift1 26s ease-in-out infinite alternate;
}

.ev-aurora--2 {
    bottom: -22vmax;
    right: -14vmax;
    background: radial-gradient(circle at 60% 60%, rgba(139, 92, 246, 0.45) 0%, transparent 65%);
    animation: auroraDrift2 32s ease-in-out infinite alternate;
}

.ev-aurora--3 {
    top: 30%;
    left: 55%;
    width: 38vmax;
    height: 38vmax;
    background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.18) 0%, transparent 60%);
    animation: auroraDrift3 38s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(9vmax, 7vmax, 0) scale(1.18); }
}

@keyframes auroraDrift2 {
    from { transform: translate3d(0, 0, 0) scale(1.1); }
    to   { transform: translate3d(-8vmax, -6vmax, 0) scale(0.95); }
}

@keyframes auroraDrift3 {
    from { transform: translate3d(0, 0, 0) scale(0.9); }
    to   { transform: translate3d(-12vmax, 8vmax, 0) scale(1.25); }
}

/* Vagues numériques violettes (canvas plein écran, sous le grain) */
.ev-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Grain photographique : SVG feTurbulence inline (data:, autorisé par la CSP) */
.ev-grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.login-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * PANNEAU MARQUE (gauche)
 * ═══════════════════════════════════════════════════════════════════════════ */
.login-brand-panel {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 3rem 3.5rem;
    background: rgba(13, 13, 15, 0.55);
    overflow: hidden;
}

/* Grille en perspective avec fondu — défile lentement */
.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: -60px;
    background:
        linear-gradient(rgba(129, 140, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 35% 45%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 35% 45%, black 0%, transparent 75%);
    animation: gridPan 36s linear infinite;
    pointer-events: none;
}

@keyframes gridPan {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(44px, 44px, 0); }
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.25) 30%, rgba(99, 102, 241, 0.25) 70%, transparent);
}

.brand-content {
    position: relative;
    z-index: 1;
}

/* ── Marque : logo + wordmark côte à côte ── */
.brand-mark {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 2.4rem;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-logo-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo : net, statique et sobre (zéro halo flou, zéro animation d'oscillation) */
.brand-logo-wrap::before {
    display: none;
}

.brand-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.brand-name {
    font-family: var(--ev-font-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--ev-text-primary);
}

.brand-name em {
    font-style: italic;
    background: linear-gradient(120deg, #818cf8 0%, #a78bfa 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.12em;
}

.brand-claim {
    font-size: 1rem;
    font-weight: 300;
    color: var(--ev-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Headline : la promesse ── */
.brand-headline {
    font-family: var(--ev-font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.16;
    color: var(--ev-text-primary);
    overflow: visible;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.brand-headline em {
    font-style: italic;
    /* Spectre PRISM : indigo → violet → or de chancellerie (plus de cyan hors charte) */
    background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 35%, #a78bfa 55%, #e8c787 80%, #6366f1 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-right: 0.1em;
    animation: gradientSlide 7s linear infinite;
}

@keyframes gradientSlide {
    to { background-position: 250% center; }
}

.brand-tagline {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--ev-text-secondary);
    margin-top: 0.9rem;
    letter-spacing: 0.01em;
    line-height: 1.65;
    max-width: 30rem;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.brand-separator {
    width: 48px;
    height: 2px;
    background: var(--ev-accent-gradient);
    border-radius: 1px;
    margin: 1.6rem 0;
    opacity: 0.6;
    transform-origin: left center;
    animation: separatorGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes separatorGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.brand-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ev-text-secondary);
    line-height: 1.5;
    padding: 0.35rem 0.5rem;
    margin-left: -0.5rem;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    animation: fadeSlideLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-features li strong {
    font-weight: 500;
    color: var(--ev-text-primary);
}

/* Entrée en cascade */
.brand-features li:nth-child(1) { animation-delay: 0.4s; }
.brand-features li:nth-child(2) { animation-delay: 0.52s; }
.brand-features li:nth-child(3) { animation-delay: 0.64s; }

.brand-features li:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
    color: var(--ev-text-primary);
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--ev-accent-bright);
    margin-top: 1px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.brand-features li:hover .feature-icon {
    background: rgba(99, 102, 241, 0.16);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

/* ── Stats : chiffres d'autorité ── */
.brand-stats {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1.9rem;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.76s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-value {
    font-family: var(--ev-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(120deg, #c4b5fd 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value small {
    font-size: 0.95rem;
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--ev-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-sep {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.35), transparent);
}

/* ── Chips secteurs ── */
.sector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.7rem;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.88s both;
}

.chip {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ev-accent-bright);
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    background: rgba(99, 102, 241, 0.07);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.chip:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(129, 140, 248, 0.5);
    transform: translateY(-1px);
}

.brand-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 3.5rem;
    z-index: 1;
    animation: fadeIn 1s ease 0.9s both;
}

.brand-copy {
    font-size: 0.75rem;
    color: var(--ev-text-muted);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * PANNEAU FORMULAIRE (droite)
 * ═══════════════════════════════════════════════════════════════════════════ */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Carte "liquid glass" : très translucide + flou saturé pour laisser
   deviner l'aurore/les vagues animées derrière, avec un fin reflet
   lumineux en haut (inset highlight) qui simule la réfraction du verre. */
.form-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    padding: 2.5rem 2.25rem;
    border-radius: var(--ev-radius-lg);
    /* Teinte dégradée intégrée (et pas seulement une opacité plate) afin que
       l'effet "verre" reste visible même quand le fond animé est peu chargé
       à l'endroit de la carte. */
    background: linear-gradient(
        160deg,
        rgba(99, 102, 241, 0.16) 0%,
        rgba(18, 18, 24, 0.24) 42%,
        rgba(139, 92, 246, 0.12) 100%
    );
    backdrop-filter: blur(34px) saturate(2.2) brightness(1.1);
    -webkit-backdrop-filter: blur(34px) saturate(2.2) brightness(1.1);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        0 4px 18px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        inset 0 0 90px rgba(139, 92, 246, 0.18);
    animation: cardEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bordure en dégradé animé (conic tournant, masqué sur 1px) */
.form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--ev-angle, 0deg),
        rgba(99, 102, 241, 0.5),
        rgba(255, 255, 255, 0.06) 25%,
        rgba(139, 92, 246, 0.4) 50%,
        rgba(255, 255, 255, 0.06) 75%,
        rgba(99, 102, 241, 0.5)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 9s linear infinite;
    pointer-events: none;
}

@property --ev-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderSpin {
    to { --ev-angle: 360deg; }
}

.form-logo-mobile {
    display: none;
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    margin-bottom: 1.25rem;
}

.form-header {
    margin-bottom: 2.25rem;
}

.form-header h2 {
    font-family: var(--ev-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ev-text-primary);
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--ev-text-secondary);
    margin-top: 0.4rem;
    font-weight: 300;
}

/* ── Form ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.input-group {
    margin-bottom: 1.4rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ev-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.input-group:focus-within label {
    color: var(--ev-accent-bright);
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ev-text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap:focus-within .input-icon {
    color: var(--ev-accent-bright);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    /* Petites surfaces vitrées elles aussi (cohérence avec la carte) plutôt
       que des pavés opaques posés sur du verre translucide. */
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--ev-text-primary);
    font-family: var(--ev-font-body);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: var(--ev-text-muted);
    font-weight: 300;
}

.input-group input:hover {
    border-color: var(--ev-border-hover);
    background: rgba(255, 255, 255, 0.07);
}

.input-group input:focus {
    outline: none;
    border-color: var(--ev-border-focus);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--ev-accent-glow), 0 0 22px rgba(99, 102, 241, 0.08);
}

/* Champ mot de passe : place pour le bouton œil */
.input-wrap--password input {
    padding-right: 2.9rem;
}

/* Bouton afficher/masquer le mot de passe */
.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ev-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.pw-toggle:hover {
    color: var(--ev-text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.pw-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--ev-accent-glow);
}

.pw-toggle .icon-eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye-off { display: block; }

/* Indicateur Caps Lock */
.capslock-hint {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #fbbf24;
}

.capslock-hint.visible {
    display: flex;
    animation: fadeIn 0.2s ease both;
}

/* ── Bouton submit ── */
.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: var(--ev-radius);
    background: var(--ev-accent-gradient);
    color: white;
    font-family: var(--ev-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Balayage lumineux périodique */
.login-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
    transform: skewX(-20deg);
    animation: btnSheen 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnSheen {
    0%, 60% { left: -80%; }
    100%    { left: 130%; }
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35), 0 2px 8px rgba(99, 102, 241, 0.18);
}

.login-submit:hover .btn-arrow {
    transform: translateX(3px);
}

.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--ev-bg-deep), 0 0 0 4px var(--ev-accent);
}

.login-submit:active {
    transform: translateY(0) scale(0.99);
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.85;
    transform: none;
}

.btn-arrow {
    transition: transform 0.25s ease;
}

/* Spinner d'envoi (remplace la flèche pendant le POST) */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.login-submit.loading .btn-arrow { display: none; }
.login-submit.loading .btn-spinner { display: block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Erreur ── */
.error {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.08);
    border-radius: var(--ev-radius);
    border: 1px solid rgba(248, 113, 113, 0.18);
    text-align: center;
    animation: errorShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes errorShake {
    10%, 90%      { transform: translateX(-1px); }
    20%, 80%      { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60%      { transform: translateX(3px); }
}

/* ── Pied de formulaire ── */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Note self-service : changement de mot de passe après connexion */
.selfservice-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ev-text-secondary);
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--ev-radius);
    animation: fadeIn 0.8s ease 0.7s both;
}

.selfservice-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ev-accent-bright);
}

.selfservice-note strong {
    font-weight: 500;
    color: var(--ev-text-primary);
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ev-text-muted);
    letter-spacing: 0.03em;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.badge-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ev-text-muted);
    opacity: 0.5;
}

/* ── Animations génériques ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

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


/* ═══════════════════════════════════════════════════════════════════════════
 * ACCESSIBILITÉ — mouvement réduit
 * ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Responsive : tablette ── */
@media (max-width: 960px) {
    .login-brand-panel {
        flex: 0 0 40%;
        padding: 2.5rem;
    }
    .brand-footer { left: 2.5rem; }
    .brand-headline { font-size: 2rem; }
    .brand-stats { gap: 1rem; }
    .stat-value { font-size: 1.3rem; }
}

/* Écrans peu hauts : compacter le panneau marque */
@media (max-height: 780px) {
    .login-brand-panel { padding: 2rem 3rem; }
    .brand-mark { margin-bottom: 1.2rem; }
    .brand-logo-wrap { width: 84px; height: 84px; }
    .brand-name { font-size: 1.7rem; }
    .brand-claim { font-size: 0.82rem; }
    .brand-headline { font-size: 1.85rem; }
    .brand-tagline { font-size: 0.85rem; margin-top: 0.6rem; }
    .brand-separator { margin: 1rem 0; }
    .brand-features { gap: 0.55rem; }
    .brand-features li { font-size: 0.78rem; padding: 0.2rem 0.5rem; }
    .feature-icon { width: 24px; height: 24px; }
    .brand-stats { margin-top: 1.1rem; }
    .stat-value { font-size: 1.25rem; }
    .sector-chips { margin-top: 1rem; }
    .brand-footer { display: none; }
}

/* ── Responsive : mobile ── */
@media (max-width: 720px) {
    .login-layout {
        flex-direction: column;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 2rem 1.25rem;
    }

    .form-logo-mobile {
        display: block;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-wrapper {
        max-width: 380px;
        padding: 2rem 1.5rem;
    }
}


/* Commercial entry: readable secondary text and an explicit access-recovery path. */
.brand-claim, .brand-tagline, .brand-features li, .form-subtitle, .selfservice-note,
.stat-label, .trust-badges, .input-group label { color: #bfc0ce; }
.input-wrap input::placeholder { color: #a9abbc; opacity: 1; }
.access-help { color: #d5d5e3; margin-bottom: 1rem; font-size: .85rem; line-height: 1.5; }
.access-help summary { cursor: pointer; padding: .4rem 0; text-decoration: underline; text-underline-offset: 3px; }
.access-help p { margin: .7rem 0; }
.access-help summary:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; }
