/* ═══════════════════════════════════════════════════════════════
   TRACKGREE — LOGIN.CSS  v4.0
   Mobile-First · WebView Ready · Splash Screen intégré
   Fonts : DM Sans (body) · Exo 2 (brand / titres)
   ─────────────────────────────────────────────────────────────
   STRUCTURE :
   1.  GOOGLE FONTS
   2.  VARIABLES
   3.  RESET & BASE
   4.  SCROLLBARS
   5.  SPLASH SCREEN
   6.  STATES BODY (splash-active / app-ready)
   7.  ── LAYOUT DESKTOP (≥ 1024px) ──
   8.  ── LAYOUT MOBILE (< 1024px) ──
   9.  BANNIÈRE HERO
   10. MOBILE BRAND OVERLAY
   11. BACKGROUND (mobile-bg)
   12. LANGUE SELECTOR
   13. BIENVENUE (mobile)
   14. LOGO
   15. CHAMPS D'INPUT
   16. FORMULAIRES (show/hide)
   17. CHECKBOX & LIENS
   18. BOUTON PRIMAIRE
   19. BOUTON DÉMO
   20. SWITCH FORM
   21. FOOTER & APP STORES
   22. GEO-SUGGESTIONS
   23. MODAL OTP
   24. TOAST NOTIFICATIONS
   25. ÉTATS UTILITAIRES
   26. PASSWORD-RESET (existant)
   27. LOADER SPINNER
   28. KEYFRAMES
   29. PETITS ÉCRANS (< 480px)
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   1. GOOGLE FONTS
───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Exo+2:wght@600;700;800;900&display=swap');

/* ─────────────────────────────────────
   2. VARIABLES
───────────────────────────────────── */
:root {
    /* Brand */
    --primary:        #1a63f4;
    --primary-dark:   #1152d4;
    --primary-light:  #e8efff;
    --primary-ring:   rgba(26, 99, 244, 0.14);
    --accent:         #00c9a7;

    /* Surfaces */
    --bg:             #f1f5fb;
    --card:           #ffffff;
    --surface:        #f5f8ff;
    --border:         #dde4f5;
    --border-focus:   #1a63f4;

    /* Texte */
    --text:           #0d1b3e;
    --text-sub:       #3d5080;
    --text-muted:     #7888aa;
    --text-light:     #a8b5cc;

    /* Ombres */
    --shadow-sm:      0 2px 8px rgba(13,27,62,.07);
    --shadow-md:      0 6px 20px rgba(13,27,62,.10);
    --shadow-lg:      0 16px 48px rgba(13,27,62,.14);
    --shadow-btn:     0 4px 16px rgba(26,99,244,.30);

    /* Radii */
    --r-xs:   6px;
    --r-sm:   10px;
    --r:      9px;
    --r-lg:   20px;
    --r-xl:   28px;

    /* Transitions */
    --ease:        cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --t:           .22s;

    /* Splash */
    --splash-bg:  #060e22;
    --splash-pr:  #1a63f4;
    --splash-ac:  #00c9a7;
}

/* ─────────────────────────────────────
   3. RESET & BASE
───────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    min-height: -webkit-fill-available;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

body, html {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    height: calc(var(--vh, 1vh) * 100); 
}
/* ─────────────────────────────────────
   4. SCROLLBARS
───────────────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b0bcd8, #8494b8);
    border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8494b8, #5e6e9a); }

/* ─────────────────────────────────────
   5. SPLASH SCREEN
───────────────────────────────────── */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--splash-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* transition déclenchée par JS (.splash-exit) */
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* Ambiance gradient mesh */
.splash-screen::before {
    content: '';
    position: absolute;
    top: -40%; left: -30%;
    width: 160%; height: 160%;
    background:
        radial-gradient(ellipse 55% 45% at 22% 32%, rgba(26,99,244,.22) 0%, transparent 65%),
        radial-gradient(ellipse 50% 52% at 76% 68%, rgba(0,201,167,.16) 0%, transparent 65%);
    animation: splashMeshMove 6s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Grille de points */
.splash-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.038) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* Classe ajoutée par JS pour la sortie */
.splash-exit {
    opacity: 0 !important;
    transform: scale(1.04) !important;
    pointer-events: none;
}

/* Wrapper logo */
.splash-logo-wrap {
    position: relative;
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashLogoIn .7s var(--ease-spring) .2s both;
}

/* Anneau conic-gradient rotatif */
.splash-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* Pas de transform ici — contenu dans overflow:visible du wrapper */
    background: conic-gradient(
        from 0deg,
        var(--splash-pr) 0deg 100deg,
        var(--splash-ac)  100deg 185deg,
        transparent      185deg 360deg
    );
    animation: splashRingSpin 2.2s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask:         radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

/* Anneau pulsant */
.splash-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(26,99,244,.22);
    animation: splashPulse 2.4s ease-out .9s infinite;
}

/* Carte icône */
.splash-icon-bg {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(26,99,244,.18), rgba(0,201,167,.1));
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(26,99,244,.22), inset 0 1px 0 rgba(255,255,255,.14);
}

.splash-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(26,99,244,.55)) brightness(1.1);
}

/* Marque */
.splash-brand {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    animation: splashBrandIn .55s var(--ease) .65s both;
}

.splash-brand-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .4px;
    text-shadow: 0 0 40px rgba(26,99,244,.45);
}

.splash-brand-sub {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 3.8px;
    text-transform: uppercase;
    color: var(--splash-ac);
}

/* Barre de chargement */
.splash-progress-track {
    position: absolute;
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 99px;
    overflow: hidden;
    animation: splashFadeEl .3s ease .9s both;
}

.splash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--splash-pr), var(--splash-ac));
    border-radius: 99px;
    animation: splashBarFill 2.3s var(--ease) .9s both;
}

.splash-tagline {
    position: absolute;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    font-size: 10.5px;
    color: rgba(255,255,255,.28);
    animation: splashFadeEl .3s ease 1.1s both;
}

/* ─────────────────────────────────────
   6. ÉTATS BODY
───────────────────────────────────── */
body.splash-active { overflow: hidden; }

/* Entrée de l'app après disparition du splash */
body.app-ready .login-main-component {
    animation: appFadeIn .4s var(--ease) .05s both;
}

/* ═══════════════════════════════════════════════════════════════
   7. LAYOUT DESKTOP (≥ 1024px — comportement original conservé)
═══════════════════════════════════════════════════════════════ */
.login-main-component {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-size: 120px;
}

.login-main-component::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(167, 180, 183, .49);
    backdrop-filter: blur(0px);
    z-index: -1;
}

.new-login-view {
    width: 100vw;
    height: 100vh;
    /* ← min-width: 1024px retiré — remplacé ci-dessous en desktop seulement */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-content {
    display: flex;
    width: 100%;
    max-width: 850px;
    height: 630px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Desktop : panneau gauche visible */
.login-left {
    flex: 1;
    background: url('/storage/logins/Trackgree-wallstreet-pro.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Desktop : panneau droit */
.login-right {
    flex: 1;
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-y: auto;
}

/* Desktop : bannière cachée (le fond est dans .login-left) */
.login-header-banner { display: none; }
.login-mobile-brand  { display: none; }

/* Desktop : bienvenue caché (on affiche le logo) */
.login-welcome { display: none; }

/* Uniquement desktop — restaurer min-width */
@media (min-width: 1024px) {
    .new-login-view { min-width: 1024px; }
}

/* ═══════════════════════════════════════════════════════════════
   8. LAYOUT MOBILE (< 1024px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

    /* Corps : full-height, pas de scroll body (scroll interne) */
    body {
        overflow: hidden;
        height: 100vh;
        height: 100dvh;
    }

    .login-main-component {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100); /* ← AJOUTER */
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background: var(--bg);
    }

    .login-main-component::before { display: none; }

    .new-login-view {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100); /* ← AJOUTER */
        min-width: 0 !important;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    /* Carte centrée (tablette) ou plein écran (phone) */
    .login-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 480px;
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100); /* ← AJOUTER */
        max-height: 100vh;
        max-height: 100dvh;
        max-height: calc(var(--vh, 1vh) * 100); /* ← AJOUTER */
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    /* Panneau gauche : caché */
    .login-left { display: none !important; }

    /* Panneau droit : full-flex column, scroll interne */
    .login-right {
        flex: 1;
        width: 100%;
        position: relative;              /* ← contexte pour le language-select absolu */
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: var(--card);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Formulaires : padding horizontal */
    /* language-select est maintenant en position:absolute → pas de padding ici */
    .login-welcome      { display: block !important; padding: 0; }  /* !important → bat la règle globale ligne 825 */
    .logo-login         { display: none !important; }
    .login-box-fields   { padding: 0 20px; }
    .login-footer       { padding: 16px 20px 24px; margin-top: 8px; }
}

/* Tablette centrée */
@media (max-width: 1023px) and (min-width: 600px) {
    .login-main-component { align-items: center; padding: 24px; }
    .new-login-view       { align-items: center; }
    .login-content {
        max-width: 440px;
        height: auto;
        min-height: 0;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }
    .login-right { max-height: 92vh; max-height: 92dvh; }
}

/* ═══════════════════════════════════════════════════════════════
   9. BANNIÈRE HERO (mobile uniquement)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

    .login-header-banner {
        display: block !important;   /* tous les enfants en position:absolute */
        position: relative;
        width: 100%;
        height: 230px;
        overflow: hidden;            /* contient l'image — le language-select est HORS du banner */
        flex-shrink: 0;
    }

    /* Image — aucun transform, aucun scale */
    .login-header-cover {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
    }

    /* Overlay dégradé */
    .banner-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(130deg, rgba(6,14,34,.80) 0%, rgba(13,27,62,.42) 55%, rgba(13,27,62,.08) 100%),
            linear-gradient(to top, rgba(0,0,0,.50) 0%, transparent 60%);
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .login-header-banner { height: 210px; }
}

@media (max-width: 480px) {
    .login-header-banner { height: 190px; }
}

/* ═══════════════════════════════════════════════════════════════
   10. MOBILE BRAND OVERLAY — ancré en absolu bas-gauche
       Jamais coupé : indépendant du flux flex
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

    .login-mobile-brand {
        position: absolute;          /* ancré dans .login-header-banner */
        bottom: 68px;
        left: 20px;
        z-index: 2;
        display: flex !important;
        align-items: center;
        gap: 12px;
        max-width: calc(100% - 40px);
        animation: brandSlideIn .6s var(--ease-spring) .3s both;
    }

    .login-mobile-brand-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
        border: 1px solid rgba(255,255,255,.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 20px rgba(26,99,244,.2);
    }

    .login-mobile-brand-icon img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        filter: drop-shadow(0 2px 6px rgba(255,255,255,.2));
    }

    .login-mobile-brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .login-mobile-brand-text .brand-name {
        font-family: 'Exo 2', sans-serif;
        font-size: 22px;
        font-weight: 800;
        color: #fff;
        letter-spacing: .3px;
        text-shadow: 0 2px 10px rgba(0,0,0,.4);
    }

    .login-mobile-brand-text .brand-subtitle {
        margin-top: 4px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 2.4px;
        text-transform: uppercase;
        color: rgba(255,255,255,.82);
    }
}

@media (max-width: 768px) {
    .login-mobile-brand-icon { width: 46px; height: 46px; min-width: 46px; }
    .login-mobile-brand-text .brand-name { font-size: 20px; }
}

@media (max-width: 480px) {
    .login-mobile-brand-icon { width: 42px; height: 42px; min-width: 42px; }
    .login-mobile-brand-text .brand-name { font-size: 18px; }
    .login-mobile-brand-text .brand-subtitle { font-size: 9px; letter-spacing: 2px; }
}

/* Animation entrée marque */
@keyframes brandSlideIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ─────────────────────────────────────
   11. BACKGROUND MOBILE
───────────────────────────────────── */
.mobile-bg { display: none; }

@media (max-width: 768px) {
    .mobile-bg {
        display: block;
        position: fixed;
        inset: 0;
        background: linear-gradient(160deg, #f7f9fb 0%, #ecf6ff 100%);
        z-index: -2;
    }
}

/* ─────────────────────────────────────
   12. SÉLECTEUR DE LANGUE
   Desktop : flux normal dans .login-right (inchangé)
   Mobile  : absolu sur .login-right, superposé sur la bannière
             ↳ HORS du overflow:hidden du banner → dropdown visible
───────────────────────────────────── */
.language-select {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    z-index: 20;
}

/* Desktop : marges desktop originales — inchangé */
@media (min-width: 1024px) {
    .language-select { left: 0; margin-bottom: 25px; }
}

/* ── Mobile : glass-diamond superposé haut-droit ── */
@media (max-width: 1023px) {
    .language-select {
        position: absolute;
        top: calc(20px + env(safe-area-inset-top, 0px));
        right: 14px;
        width: auto;
        margin: 0;
        z-index: 50;
    }

    /* ── Glass-Diamond pill ─────────────────────────────────────
       Crystal-facet effect:
       • multi-stop gradient: top-left bright → centre sombre → reflet bleu
       • border asymétrique (haut/gauche brillants, bas/droit sombres)
       • 5 couches de box-shadow = highlights de facettes + glow ambiant
    ──────────────────────────────────────────────────────────── */
    .select-box {
        background: linear-gradient(
            145deg,
            rgba(255,255,255,.32)  0%,
            rgba(255,255,255,.08) 42%,
            rgba(120,180,255,.18) 68%,
            rgba(255,255,255,.24) 100%
        );
        border: 1px solid rgba(255,255,255,.55);
        border-right-color:  rgba(255,255,255,.18);
        border-bottom-color: rgba(255,255,255,.18);
        backdrop-filter: blur(26px) saturate(1.7) brightness(1.08);
        -webkit-backdrop-filter: blur(26px) saturate(1.7) brightness(1.08);
        color: rgba(255,255,255,.96);
        border-radius: 99px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .05em;
        padding: 5px 12px;
        gap: 6px;
        box-shadow:
            0 3px 20px rgba(0,0,0,.28),
            inset 0  1px 0 rgba(255,255,255,.65),
            inset 0 -1px 0 rgba(0,0,0,.10),
            inset  1px 0 0 rgba(255,255,255,.28),
            0 0 12px rgba(80,150,255,.20);
        transition: background var(--t), box-shadow var(--t), border-color var(--t);
        min-width: 84px;           /* assez large pour "English" */
    }

    .select-box:hover,
    .dropdownlist-lang.active .select-box {
        background: linear-gradient(
            145deg,
            rgba(255,255,255,.44)  0%,
            rgba(255,255,255,.14) 42%,
            rgba(140,200,255,.28) 68%,
            rgba(255,255,255,.38) 100%
        );
        border-color: rgba(255,255,255,.75);
        border-right-color:  rgba(255,255,255,.28);
        border-bottom-color: rgba(255,255,255,.28);
        box-shadow:
            0 4px 26px rgba(0,0,0,.30),
            inset 0  1px 0 rgba(255,255,255,.80),
            inset 0 -1px 0 rgba(0,0,0,.10),
            inset  1px 0 0 rgba(255,255,255,.40),
            0 0 18px rgba(100,160,255,.30);
    }

    .select-box .arrow {
        color: rgba(255,255,255,.70);
        font-size: 9px;
    }

    /* Dropdown list — carte blanche standard */
    .options-container {
        top: calc(100% + 3px);
        right: 0;
        left: auto;
        width: 158px;
        background: var(--card);
        border: 1px solid var(--border);
        color: var(--text);
        z-index: 200;
    }
}

.dropdownlist-lang {
    position: relative;
    width: 128px;
    font-family: 'DM Sans', sans-serif;
    z-index: 2;
}

@media (max-width: 1023px) {
    .dropdownlist-lang { width: auto; }
}

.select-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--r-sm);
    background-color: var(--card);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(94,93,90,.20);
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    border: 1px solid var(--border);
    user-select: none;
}

.select-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.select-box .arrow {
    font-size: 10px;
    color: #888;
    transition: transform .3s var(--ease);
}

.dropdownlist-lang.active .select-box .arrow {
    transform: rotate(180deg);
}

.options-container {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 118px;
    max-height: 220px;
    background-color: var(--card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    z-index: 100;
}

.dropdownlist-lang.active .options-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.search-box {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    background: var(--card);
    color: var(--text);
}

.option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-sub);
    transition: background .15s, color .15s;
}

.option:hover { background: var(--primary-light); color: var(--primary); }

.option.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

/* ─────────────────────────────────────
   13. TEXTE DE BIENVENUE / SLOGAN (mobile seul)
───────────────────────────────────── */
/* login-welcome est géré par la media query @media (max-width:1023px) ci-dessus */
.login-welcome {
    margin-bottom: 8px;
    /* display contrôlé uniquement par les media queries — pas de default ici */
}

/* ══════════════════════════════════════════════════════════
   SLOGAN BLOCK (remplace welcome-title / welcome-sub)
══════════════════════════════════════════════════════════ */
.login-slogan-block {
    padding: 20px 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* ─── FLEET INTELLIGENCE ─── */
.slogan-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a63f4;
    opacity: .75;
}
.slogan-eyebrow-line {
    display: block;
    flex: 1;
    max-width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .5;
    border-radius: 1px;
}

/* Main headline — animated gradient */
.slogan-main {
    font-family: 'Exo 2', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.4px;
    margin: 0;
    background: linear-gradient(130deg, #1a63f4 0%, #0d9488 50%, #1a63f4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sloganShimmer 6s linear infinite;
}

@keyframes sloganShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Tagline */
.slogan-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted, #8a94a6);
    letter-spacing: .2px;
    margin: 0;
}

/* Compat — hide old classes if still rendered */
.welcome-title, .welcome-sub { display: none !important; }


/* ─────────────────────────────────────
   14. LOGO
───────────────────────────────────── */
.logo-login {
    text-align: center;
    justify-content: center;
    margin-top: 2px;
    height: 10px;
    transition: transform .4s var(--ease);
}

.logo-login img {
    width: 55%;
    height: auto;
    margin-top: 15px;
}

.logo-register-up { transform: translateY(-60px); }
.logo-forgot-down { transform: scale(.85); }

/* ─────────────────────────────────────
   15. CHAMPS D'INPUT
───────────────────────────────────── */
.login-box-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 300px;
    align-items: center;
    overflow-x: hidden;
}

@media (max-width: 1023px) {
    .login-box-fields { max-width: 100%; gap: 0; }
}

.input-field {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    height: 38px;
}

@media (max-width: 1023px) {
    .input-field { height: auto; margin-bottom: 12px; }
}

/* ── Input (desktop) ── */
.input-field input {
    width: 100%;
    padding: 8px 34px;
    background-color: var(--card);
    border: 1px solid #ddd;
    border-radius: var(--r-xs);
    font-size: 13px;
    color: #333;
    font-family: 'DM Sans', sans-serif;
    transition: border .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,.02);
}

/* ── Input (mobile) : plus grand, plus rond ── */
@media (max-width: 1023px) {
    .input-field input {
        height: 37px;
        padding: 0 44px;
        border-radius: var(--r);
        border: 1.5px solid var(--border);
        background: var(--surface);
        font-size: 13px;
        -webkit-appearance: none;
        appearance: none;
    }
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--card);
    box-shadow: 0 0 0 4px var(--primary-ring);
}

.input-field input::placeholder {
    color: #aaa;
    font-weight: 400;
}

@media (max-width: 1023px) {
    .input-field input::placeholder { color: var(--text-light); }
}

/* ── Styled-input (register) ── */
.styled-input {
    width: 100%;
    padding: 10px 34px;
    background-color: var(--card);
    border: 1px solid #ddd;
    border-radius: var(--r-xs);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #333;
    transition: border .3s var(--ease);
}

@media (max-width: 1023px) {
    .styled-input {
        height: 50px;
        padding: 0 44px;
        border-radius: var(--r);
        border: 1.5px solid var(--border);
        background: var(--surface);
        font-size: 14px;
        -webkit-appearance: none;
        appearance: none;
    }
}

.styled-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--card);
    box-shadow: 0 0 0 4px var(--primary-ring);
}

.styled-input::placeholder { color: #aaa; font-weight: 400; }

/* Icône */
.input-field .icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
    pointer-events: none;
    transition: color var(--t);
    z-index: 1;
}

@media (max-width: 1023px) {
    .input-field .icon { left: 15px; font-size: 14px; }
    .input-field:focus-within .icon { color: var(--primary); }
}

/* Toggle mot de passe */
.input-field .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    padding: 5px;
    line-height: 1;
    transition: color .3s var(--ease);
    z-index: 1;
}

.input-field .toggle-password:hover,
.input-field .toggle-password.active { color: var(--primary); }

/* Supprime oeil natif */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-credentials-auto-fill-button { display: none !important; }
input[type="password"]::-webkit-textfield-decoration-container { display: none !important; }
input[type="password"]::-webkit-reveal { display: none !important; }

/* Autofill */
.input-field input:-webkit-autofill,
.styled-input:-webkit-autofill {
    background-color: var(--card) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--card) inset !important;
    box-shadow: 0 0 0 1000px var(--card) inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* Erreur input */
.input-error { border: 1px solid #e53935 !important; }

.error-msg {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 4px;
}

/* ─────────────────────────────────────
   16. FORMULAIRES (show / hide)
───────────────────────────────────── */
.form-section {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    position: absolute;
    width: auto;
}

.form-section.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-form,
.register-form,
.forgot-form {
    display: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.login-form.show,
.register-form.show,
.forgot-form.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: formIn .35s var(--ease) both;
}

.forgot-form:not(.show) { display: none; }

.hidden-register { display: none !important; }
.hidden-forgot   { display: none !important; }

/* ─────────────────────────────────────
   17. CHECKBOX & LIENS
───────────────────────────────────── */
.login-other-operate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 14px;
    width: 100%;
}

.login-other-operate .left  { flex: 1; text-align: left; }
.login-other-operate .right { flex: 1; text-align: right; }

.remember-label.check-advanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.remember-label.check-advanced input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #eaeaea;
    border-radius: 4px;
    background-color: var(--card);
    cursor: pointer;
    position: relative;
    transition: all .2s;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    margin: 0;
    flex-shrink: 0;
}

.remember-label.check-advanced input[type="checkbox"]:hover { border-color: var(--primary); }

.remember-label.check-advanced input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.remember-label.check-advanced input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-pwds {
    color: #0c84da;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    transition: color var(--t);
}

.forgot-pwds:hover { color: #0095ff; text-decoration: underline; }

/* ─────────────────────────────────────
   18. BOUTON PRIMAIRE
───────────────────────────────────── */
.add-primary-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #2672f8, #1a63f4 55%, #1456d4);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: var(--r-xs);
    padding: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
    box-shadow: 0 2px 8px rgba(26,99,244,.25);
    text-align: center;
}

@media (max-width: 1023px) {
    .add-primary-btn {
        height: 35px;
        border-radius: var(--r);
        font-size: 15px;
        box-shadow: var(--shadow-btn);
    }
}

/* Shimmer sweep */
.add-primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 35%;
    height: 200%;
    background: rgba(255,255,255,.18);
    transform: skewX(-22deg);
    animation: btnShimmer 4.5s ease-in-out 2.5s infinite;
    pointer-events: none;
}

.add-primary-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 14px rgba(37,99,235,.38);
    transform: translateY(-1px);
}

.add-primary-btn:active {
    transform: scale(.98);
    box-shadow: 0 2px 6px rgba(37,99,235,.28);
}

/* Boutons legacy */
.btn-login, .btn-action {
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    max-width: 300px;
    background: linear-gradient(135deg, #8f6a75, #079acfd6);
    border: none;
    border-radius: 7px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background-color .3s, box-shadow .3s;
}

.btn-login:hover, .btn-action:hover {
    background: linear-gradient(135deg, #b07486, #14ace3d6);
    box-shadow: 0 3px 6px rgba(0,0,0,.08);
}

/* ─────────────────────────────────────
   19. BOUTON DÉMO
───────────────────────────────────── */
.demo-btn {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
}

.demo-btn a {
    text-decoration: none;
    color: #006dd3;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color .2s;
    padding: 6px 14px;
}

.demo-btn a:hover { color: #0095ff; }

@media (max-width: 1023px) {
    .demo-btn { margin-top: 10px; }
    .demo-btn a {
        border: 1.5px dashed var(--border);
        border-radius: 99px;
        font-size: 13px;
        color: var(--text-muted);
        transition: all .2s;
    }
    .demo-btn a:hover {
        color: var(--primary);
        border-color: var(--primary);
        background: var(--primary-light);
    }
}

/* ─────────────────────────────────────
   20. SWITCH FORM
───────────────────────────────────── */
.switch-form {
    text-align: center;
    font-size: .85rem;
    margin-top: 18px;
    color: #666;
    opacity: .9;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.switch-form a {
    color: #0074c6;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.switch-form a:hover { color: #0095ff; text-decoration: underline; }

/* ─────────────────────────────────────
   21. FOOTER & APP STORES
───────────────────────────────────── */
.login-footer { margin-top: 1px; }

.terms-policy {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #888;
    width: 100%;
    max-width: 300px;
}

@media (max-width: 1023px) { .terms-policy { max-width: 100%; } }

.terms-policy a {
    color: #0c84da;
    text-decoration: none;
    font-weight: 500;
}

.terms-policy a:hover { text-decoration: underline; }

.login-app-download {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.store-wrapper { position: relative; cursor: pointer; }

.store-wrapper img {
    width: 90px;
    transition: transform .3s;
}

.store-wrapper:hover img { transform: scale(1.05); }

.qr-popup {
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 20;
}

.qr-popup img { width: 100px; height: auto; }

.store-wrapper:hover .qr-popup { opacity: 1; pointer-events: auto; }

/* ─────────────────────────────────────
   22. GEO-SUGGESTIONS
───────────────────────────────────── */
.location-autocomplete { position: relative; }

.geo-suggestions {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px 0;
    background: var(--card);
    border-radius: var(--r);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    position: absolute;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all .2s;
}

.geo-suggestions.show { display: block; opacity: 1; transform: translateY(0); }

.geo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13.5px;
    color: #555;
    transition: background .2s, color .2s;
}

.geo-item i { color: #f39c12; font-size: 14px; }

.geo-item:hover { background: var(--primary-light); color: var(--primary); }
.geo-item:hover i { color: var(--primary); }

.no-results { text-align: center; padding: 10px; font-size: 13px; color: #aaa; }

.register-scroll-area {
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #0cbcc4 #f3f4f6;
}

/* ─────────────────────────────────────
   23. MODAL OTP
───────────────────────────────────── */
.otp-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,.55);
    display: flex;
    align-items: flex-end;          /* bottom sheet sur mobile */
    justify-content: center;
    z-index: 9000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity .3s;
}

@media (min-width: 600px) {
    .otp-modal-overlay { align-items: center; }
}

.otp-modal-overlay.hidden { display: none !important; }

.otp-modal-box {
    background-color: var(--card);
    width: 100%;
    max-width: 450px;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    position: relative;
    font-family: 'DM Sans', sans-serif;
    animation: slideUpModal .35s var(--ease-spring) both;
}

@media (min-width: 600px) {
    .otp-modal-box { border-radius: 16px; }
}

.otp-modal-box.fade-out { animation: fadeSlideOut .3s ease forwards; }

/* Pill drag */
.otp-modal-box::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    margin: 0 auto 18px;
}

@media (min-width: 600px) {
    .otp-modal-box::before { display: none; }
}

.otp-modal-header {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.otp-modal-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.otp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    max-width: 100%;
}

.otp-logo { height: 26px; margin-right: 10px; border-radius: 6px; }

.otp-title-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.otp-label { font-weight: 700; color: var(--primary); font-size: 13px; }
.otp-separator-label { color: var(--border); }
.otp-user-data { font-size: 11.5px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; max-width: 130px; white-space: nowrap; }

.otp-close-btn {
    background: #e0e0e0;
    border: none;
    font-size: 18px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.otp-close-btn:hover { background: #fde8e8; color: #e53935; }

.otp-separator { height: 1px; background: #e2e2e2; margin-bottom: 16px; }

.otp-modal-content { text-align: center; }

.otp-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
    display: block;
    line-height: 1.6;
}

.otp-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.otp-input {
    width: 50px;
    height: 58px;
    font-size: 24px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-ring);
    background: var(--card);
}

.otp-resend-text { font-size: 13px; color: #666; margin-bottom: 18px; }

.otp-resend-link, .otp-resend-text a { color: #28aabe; text-decoration: none; font-weight: 500; }
.otp-resend-link:hover, .otp-resend-text a:hover { text-decoration: underline; }

.otp-button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.otp-validate-btn {
    flex: 1;
    height: 46px;
    background: linear-gradient(135deg, #2672f8, #1a63f4);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t);
    box-shadow: var(--shadow-btn);
}

.otp-validate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,99,244,.38); }

.otp-cancel-btn {
    flex: 1;
    height: 46px;
    background: #f0f0f0;
    color: #333;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.otp-cancel-btn:hover { background: #fde8e8; color: #e53935; border-color: #fca5a5; }

@media (max-width: 480px) {
    .otp-modal-box  { padding: 16px; }
    .otp-input      { width: 40px; height: 48px; font-size: 20px; }
    .otp-button-group { flex-direction: column; }
    .otp-button-group button { width: 100%; }
}

/* ─────────────────────────────────────
   24. TOAST NOTIFICATIONS
───────────────────────────────────── */
.hidden { display: none !important; }

.toast-container {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: calc(100% - 32px);
    max-width: 360px;
    pointer-events: none;
}

.toast-top-center { left: 50%; transform: translateX(-50%); align-items: center; }
.toast-top-right  { right: 20px; left: auto; transform: none; align-items: flex-end; }

.toast {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    min-width: 250px;
    max-width: 340px;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown .4s ease forwards, fadeOutUp .5s ease 4.5s forwards;
    z-index: 9999;
}

.toast-icon    { font-size: 20px; }
.toast-success { background: #14973f; }
.toast-error   { background: #91001b; }
.toast-alert   { background: #bb5e00; }
.toast-info    { background: #0061c3; }

/* ─────────────────────────────────────
   25. ÉTATS UTILITAIRES
───────────────────────────────────── */
.form-options {
    display: flex;
    justify-content: space-between;
    font-size: .9em;
}

/* ─────────────────────────────────────
   26. PASSWORD RESET MODAL (existant)
───────────────────────────────────── */
.password-reset-container {
    width: 80%;
    margin: 0 auto;
    transform: scale(.95);
    padding: 5px;
}

.password-reset-header {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.header-left-newpwd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 16px;
    color: #333;
}

.icon-lock, .icon-user { font-size: 13px; color: #317a19; }
.separator { color: #56ab2f; font-weight: bold; }

.user-email-pwd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    color: #317a19;
    font-weight: 500;
}

.header-label-newpwd { max-width: 90%; font-weight: bold; font-size: 20px; }
.header-right-newpwd .datetime { font-size: 11px; color: #888; font-style: italic; }

.logo-new-pass {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #f5fff2;
    background-color: #fff;
    transition: transform .3s;
}

.logo-new-pass:hover { transform: scale(1.05); }

.header-newpass {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgb(206,235,247), #fff);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.header-title-pass {
    font-size: 18px;
    font-weight: 600;
    color: #004602;
    cursor: pointer;
    transition: transform .3s;
}

.header-title-pass:hover { transform: scale(1.04); color: #096714; }

.applyNewPassword { width: 100%; max-width: 360px; }

/* ─────────────────────────────────────
   27. LOADER SPINNER
───────────────────────────────────── */
.btn-loading { pointer-events: none; opacity: .7; position: relative; }

.btn-loading .loader-spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

.loader-circle {
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}

.loader-centered { display: block; margin: 0 auto; }

/* Register dropdown */
.register-dropdown {
    position: relative;
    cursor: pointer;
    background: var(--card);
    border: 1px solid #d1d5db;
    border-radius: var(--r-xs);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.register-dropdown:hover { border-color: #0cbcc4; }

.dynamic-country-options li {
    padding: 8px 12px;
    list-style: none;
    font-size: 14px;
    cursor: pointer;
}

.dynamic-country-options li:hover { background: var(--primary-light); }

/* ─────────────────────────────────────
   28. KEYFRAMES
───────────────────────────────────── */
@keyframes splashMeshMove {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(3%,4%) scale(1.07); }
}

@keyframes splashLogoIn {
    from { opacity: 0; transform: scale(.5); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes splashPulse {
    0%   { transform: scale(1); opacity: .5; }
    100% { transform: scale(1.9); opacity: 0; }
}

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

@keyframes splashBarFill {
    from { width: 0%; }
    to   { width: 100%; }
}

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

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

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

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

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

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

@keyframes btnShimmer {
    0%, 100% { left: -70%; }
    40%       { left: 130%; }
}

@keyframes fadeInDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutUp {
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes markerFloat {
    0%   { transform: translate(-50%,-50%) translateY(0); }
    50%  { transform: translate(-50%,-50%) translateY(-30px); }
    100% { transform: translate(-50%,-50%) translateY(0); }
}

/* ─────────────────────────────────────
   29. TRÈS PETIT ÉCRAN (< 480px)
───────────────────────────────────── */
@media (max-width: 480px) {
    .forgot-pwds { font-size: 12px; }

    .remember-label.check-advanced {
        font-size: 12px;
        gap: 6px;
    }

    .terms-policy { font-size: 11px; }
    .login-app-download { gap: 12px; }
    .store-wrapper img  { width: 80px; }
    .splash-brand-name  { font-size: 28px; }
}

/* ─────────────────────────────────────
   30. BADGES APP STORE — masqués sur mobile
       (WebView = pas besoin de télécharger l'app)
       Les Terms remontent automatiquement.
───────────────────────────────────── */
@media (max-width: 1023px) {
    .login-app-download {
        display: none !important;
    }

    /* Les Terms s'affichent directement, bien centrés */
    .login-footer {
        align-items: center;
        text-align: center;
    }

    .terms-policy {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ─────────────────────────────────────
   31. SPLASH — barre de progression
       alignée sur la nouvelle durée (4 s)
───────────────────────────────────── */
.splash-progress-bar {
    animation-duration: 3.7s; /* ~durée dismiss 4s - 0.3s marge */
}