/* ═══════════════════════════════════════════════════════
   GesLogV — Auth v4
   Palette STRICTE : Corail #F97316 · Indigo #4338CA
   Aucun bleu (#0D6EFD etc.), pages non-scrollables
   ═══════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
    /* Corail */
    --c: #F97316;
    --c-lt: #FB923C;
    --c-dk: #C2580A;
    --c-glow: rgba(249, 115, 22, .45);
    --c-soft: rgba(249, 115, 22, .10);

    /* Indigo */
    --i: #4338CA;
    --i-lt: #6366F1;
    --i-dk: #312E81;
    --i-glow: rgba(67, 56, 202, .45);
    --i-soft: rgba(67, 56, 202, .10);

    /* Neutres dérivés de la palette */
    --bg: #0C0A1E;
    /* fond très sombre teinté indigo */
    --bg2: #160E08;
    /* fond teinté corail */
    --glass: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .12);
    --tw: rgba(255, 255, 255, .90);
    --tm: rgba(255, 255, 255, .52);

    /* Card */
    --card: #ffffff;
    --shadow: 0 40px 100px rgba(0, 0, 0, .30), 0 0 0 1px rgba(255, 255, 255, .05);
    --ib: #ddd8f5;
    /* input border — teinté indigo */
    --il: #2e2872;
    /* label couleur */
    --it: #1a1640;
    /* input text */

    /* Radii */
    --r-xl: 24px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 9px;

    /* Typo */
    --fn-h: 'Syne', sans-serif;
    --fn-b: 'Plus Jakarta Sans', sans-serif;

    /* Motion */
    --ease: .26s cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* ← NON scrollable sur desktop */
    font-family: var(--fn-b);
    background: var(--bg);
    color: var(--it);
}

/* ════════════════════════════════════
   AURORA BACKGROUND — Corail + Indigo
════════════════════════════════════ */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 15%, #1a1045 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 85% 85%, #1f0b00 0%, transparent 60%),
        #0C0A1E;
}

.aurora {
    position: absolute;
    inset: 0;
    filter: blur(85px);
    opacity: .72;
}

.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.b-i1 {
    /* indigo haut-gauche */
    width: 62vw;
    height: 62vw;
    background: radial-gradient(circle, var(--i) 0%, transparent 65%);
    top: -15%;
    left: -10%;
    animation: bm1 15s ease-in-out infinite alternate;
}

.b-c1 {
    /* corail bas-droite */
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--c) 0%, transparent 65%);
    bottom: -10%;
    right: -8%;
    animation: bm2 11s ease-in-out infinite alternate;
}

.b-i2 {
    /* indigo centre */
    width: 32vw;
    height: 32vw;
    background: radial-gradient(circle, var(--i-lt) 0%, transparent 65%);
    top: 38%;
    left: 44%;
    animation: bm3 19s ease-in-out infinite alternate;
}

.b-c2 {
    /* corail haut-droite, léger */
    width: 24vw;
    height: 24vw;
    background: radial-gradient(circle, var(--c-lt) 0%, transparent 65%);
    top: 6%;
    right: 16%;
    animation: bm1 9s ease-in-out infinite alternate-reverse;
    opacity: .55;
}

@keyframes bm1 {
    to {
        transform: translate(5vw, 7vh) scale(1.14);
    }
}

@keyframes bm2 {
    to {
        transform: translate(-7vw, -5vh) scale(1.20);
    }
}

@keyframes bm3 {
    to {
        transform: translate(3vw, -6vh) rotate(10deg) scale(.88);
    }
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 30px 30px;
}

.noise {
    position: absolute;
    inset: 0;
    opacity: .032;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}

/* ════════════════════════════════════
   LAYOUT — 100vh fixé
════════════════════════════════════ */
.auth-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── PANNEAU GAUCHE ── */
.auth-left {
    width: 44%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px;
    overflow: hidden;
    border-right: 1px solid var(--border);
    position: relative;
}

.panel-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.8vh, 38px);
    animation: panelIn .9s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge animé */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(249, 115, 22, .13);
    border: 1px solid rgba(249, 115, 22, .38);
    border-radius: 99px;
    padding: 5px 14px;
    color: var(--c-lt);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .4px;
    animation: badgePulse 3s ease infinite;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-lt);
    animation: blink 1.5s ease infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, .3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
    }
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--i), var(--c));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: 0 8px 28px var(--i-glow);
    position: relative;
}

.brand-ico::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(67, 56, 202, .5), rgba(249, 115, 22, .5));
    z-index: -1;
    filter: blur(10px);
}

.brand-ico-sm {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 11px;
}

.brand-name {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-name strong {
    color: var(--c-lt);
}

/* Headline */
.headline h2 {

    font-size: clamp(1.65rem, 2.4vw, 2.65rem);
    color: #fff;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
}

.headline h2 em {
    color: var(--c-lt);
    font-style: normal;
}

.headline p {
    color: var(--tm);
    font-size: .92rem;
    line-height: 1.65;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 11px 15px;
    backdrop-filter: blur(14px);
    transition: border-color var(--ease), transform var(--ease);
}

.feat:hover {
    border-color: rgba(249, 115, 22, .4);
    transform: translateX(5px);
}

.feat-ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(67, 56, 202, .3), rgba(249, 115, 22, .25));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-lt);
    font-size: .95rem;
}

.feat-name {
    color: var(--tw);
    font-size: .86rem;
    font-weight: 600;
}

.feat-desc {
    color: var(--tm);
    font-size: .73rem;
}

/* Stats */
.stats {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(16px);
}

.stat {
    flex: 1;
    padding: 13px 10px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.sn {
    display: block;
    font-size: 1.42rem;
    color: var(--c-lt);
    font-weight: 800;
}

.sl {
    font-size: .67rem;
    color: var(--tm);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── PANNEAU DROIT ── */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    overflow: hidden;
}

.form-wrap {
    width: 100%;
    max-width: 458px;
    animation: formIn .85s cubic-bezier(.16, 1, .3, 1) .12s both;
}

@keyframes formIn {
    from {
        opacity: 0;
        transform: translateX(36px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Logo mobile */
.brand-mobile {
    align-items: center;
    gap: 11px;
    text-decoration: none;
    margin-bottom: 28px;
}

/* ════════════════════════════════════
   CARD
════════════════════════════════════ */
.auth-card {
    background: var(--card);
    border-radius: var(--r-xl);
    padding: clamp(26px, 3.8vh, 44px) 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Barre dégradée animée */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--i-dk), var(--i), var(--i-lt), var(--c-lt), var(--c), var(--c-dk));
    background-size: 300% 100%;
    animation: barFlow 5s linear infinite;
}

@keyframes barFlow {
    to {
        background-position: 300% 0;
    }
}

/* Coin décoratif corail */
.auth-card::after {
    content: '';
    position: absolute;
    top: -55px;
    right: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, .07) 0%, transparent 70%);
    pointer-events: none;
}

.card-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--it);
    margin-bottom: 3px;
    letter-spacing: -.5px;
}

.card-sub {
    color: #7b72aa;
    font-size: .84rem;
    margin-bottom: clamp(16px, 2.4vh, 26px);
}

/* ── Inputs ── */
.form-label {
    font-size: .79rem;
    font-weight: 700;
    color: var(--il);
    margin-bottom: 6px;
}

.form-control {
    height: 48px;
    border: 1.5px solid var(--ib);
    border-radius: var(--r-md);
    font-size: .88rem;
    color: var(--it);
    padding: 0 16px;
    background: #faf9ff;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.form-control:focus {
    border-color: var(--i);
    background: #fff;
    box-shadow: 0 0 0 4px var(--i-soft);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--c-dk);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px var(--c-soft);
}

/* Input avec icône */
.inp {
    position: relative;
}

.inp .form-control {
    padding-left: 44px;
}

.inp-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b3a8d8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    transition: color var(--ease);
}

.inp:focus-within .inp-ico {
    color: var(--i);
}

/* Toggle password */
.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b3a8d8;
    cursor: pointer;
    font-size: .95rem;
    z-index: 2;
    padding: 4px;
    transition: color var(--ease);
}

.btn-eye:hover {
    color: var(--i);
}

/* ── Boutons ── */
.btn-i {
    /* Indigo — action principale */
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--i-dk) 0%, var(--i) 50%, var(--i-lt) 100%);
    border: none;
    border-radius: var(--r-md);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: 0 6px 22px var(--i-glow);
}

.btn-i:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px var(--i-glow);
}

.btn-i:active {
    transform: translateY(0);
}

.btn-i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, transparent 100%);
}

.btn-c {
    /* Corail — action secondaire / register */
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--c-dk) 0%, var(--c) 50%, var(--c-lt) 100%);
    border: none;
    border-radius: var(--r-md);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: 0 6px 22px var(--c-glow);
}

.btn-c:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px var(--c-glow);
    color: #fff;
}

.btn-c:active {
    transform: translateY(0);
}

.btn-c::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, transparent 100%);
}

/* Loading state */
.btn-t {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spin {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-loading .btn-t {
    display: none;
}

.btn-loading .spin {
    display: inline-flex;
}

/* ── Liens ── */
.lnk-i {
    color: var(--i);
    font-weight: 600;
    text-decoration: none;
}

.lnk-i:hover {
    color: var(--i-dk);
    text-decoration: underline;
}

.lnk-c {
    color: var(--c);
    font-weight: 600;
    text-decoration: none;
}

.lnk-c:hover {
    color: var(--c-dk);
    text-decoration: underline;
}

/* ── Séparateur ── */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c5bde8;
    font-size: .75rem;
    margin: 14px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ib);
}

/* ── Alertes ── */
.alert-g {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: .83rem;
    margin-bottom: 14px;
    animation: aIn .35s ease both;
}

@keyframes aIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification succès */
.a-ok {
    background: rgba(22, 163, 74, 0.08);
    /* vert clair */
    border: 1.5px solid rgba(22, 163, 74, 0.25);
    color: #166A45;
    /* texte vert foncé */
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

/* Notification erreur / warning */
.a-err {
    background: rgba(249, 115, 22, 0.08);
    /* orange clair */
    border: 1.5px solid rgba(249, 115, 22, 0.3);
    color: #C2410C;
    /* texte orange foncé / rouge orangé */
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

/* ── Erreur champ ── */
.ferr {
    font-size: .76rem;
    color: var(--c-dk);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Indicateur force mot de passe ── */
.pw-bar {
    height: 4px;
    border-radius: 99px;
    background: #e5e0f8;
    overflow: hidden;
    margin-top: 7px;
}

.pw-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width .4s ease, background .4s ease;
}

.pw-lbl {
    font-size: .71rem;
    color: #9d91c8;
    margin-top: 4px;
    display: block;
}

/* ── Icône succès ── */
.s-ico {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(14px, 2vh, 22px);
    animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.4) rotate(-20deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* ── Checkbox ── */
.form-check-input:checked {
    background-color: var(--i);
    border-color: var(--i);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--i-soft);
}

/* ── Pied de carte ── */
.card-foot {
    text-align: center;
    font-size: .83rem;
    color: #7b72aa;
    margin-top: clamp(10px, 1.8vh, 18px);
}

/* ── Boîte info ── */
.tip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: var(--i-soft);
    border: 1px solid rgba(67, 56, 202, .2);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    font-size: .79rem;
    color: var(--i-dk);
    line-height: 1.5;
}

/* ── Espacement champs adaptatif ── */
.mb-f {
    margin-bottom: clamp(10px, 1.8vh, 18px);
}

.mb-f2 {
    margin-bottom: clamp(12px, 2vh, 22px);
}

/* ════════════════════════════════════
   RESPONSIVE — mobile scroll autorisé
════════════════════════════════════ */
@media (max-width:991.98px) {

    html,
    body {
        overflow: auto;
    }

    .auth-wrapper {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }

    .auth-left {
        width: 100%;
        padding: 40px 28px 32px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .auth-right {
        padding: 32px 20px;
    }

    .auth-card {
        padding: 30px 22px;
    }

    .panel-inner {
        gap: 24px;
    }

    .features {
        display: none;
    }

    /* masqué sur mobile pour compacité */
}

@media (max-width:575.98px) {
    .auth-card {
        padding: 24px 16px;
        border-radius: var(--r-lg);
    }

    .card-title {
        font-size: 1.45rem;
    }
}