/* =========================================
   ADAPTATION VIRTTECH — surcouche des pages login/register/verifyid
   À charger APRÈS les CSS du modèle.
   ========================================= */
:root {
    --or: #D4AF37;
    --ombre: #161F27;

    /* On détourne les variables du modèle */
    --blue: #161F27;
    --blue-dark: #D4AF37;
    --blue-light: rgba(212, 175, 55, .14);

    --ink: #161F27;
    --muted: #5b6b76;
    --muted-light: #9aa7b0;
    --border: #e2e8ec;
    --field-bg: #f8fafb;

    --shadow-sm: 0 2px 12px rgba(16, 24, 32, .05);
    --shadow-md: 0 10px 30px rgba(16, 24, 32, .10);
    --shadow-lg: 0 24px 60px rgba(16, 24, 32, .20);
}

/* Police et fond */
body {
    font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: linear-gradient(160deg, #161F27 0%, #22303a 55%, #2c3a44 100%);
}

/* En-tête */
.header h1 {
    font-weight: 700;
    letter-spacing: -.02em;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 200px at 100% 0%, rgba(212, 175, 55, .18), transparent 65%);
    pointer-events: none;
}

/* Carte formulaire */
.form-card {
    border-radius: 28px 28px 0 0;
}

.form-card h2 {
    letter-spacing: -.02em;
}

/* Champs : accent doré au focus */
.input-wrapper input:focus {
    border-color: var(--or);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
}

.input-wrapper:focus-within .input-icon,
.input-wrapper:focus-within .toggle-password {
    color: var(--or);
}

/* Boutons */
.btn-primary {
    background: var(--ombre);
    color: #fff;
    transition: background .25s, color .25s, transform .2s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--or);
    color: var(--ombre);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: .6;
}

/* Liens */
.forgot-link a,
.resend a,
.back-link a,
.switch a,
.login-link a,
.register-link a {
    color: var(--muted);
}

.forgot-link a:hover,
.resend a:hover,
.back-link a:hover,
.switch a:hover,
.login-link a:hover,
.register-link a:hover {
    color: var(--or);
}

/* Boutons alternatifs (Google / invité) */
.btn-alt {
    border-color: var(--border);
}

.btn-alt:hover {
    border-color: var(--or);
}

.btn-alt .fa-user,
.btn-alt .fa-google {
    color: var(--or);
}

/* Code à 4 chiffres */
.code-inputs input:focus {
    border-color: var(--or);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
}

.code-inputs input.filled {
    border-color: var(--or);
}

/* Compte à rebours */
.timer i,
.timer .fa-hourglass-half {
    color: var(--or);
}

/* Code de démo */
.demo-code {
    margin: 14px 0 6px;
    padding: 10px 12px;
    border: 1px dashed var(--or);
    border-radius: 11px;
    background: rgba(212, 175, 55, .09);
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
}

.demo-code strong {
    color: var(--ombre);
    font-size: 1rem;
    letter-spacing: .14em;
}

/* Messages d'erreur */
.vl-inline-error {
    background: #fdf3f2 !important;
    border-color: #f0c9c4 !important;
    color: #c0392b !important;
}

/* =========================================
   BANNIÈRE VIRTTECH (haut des pages login)
   ========================================= */
body { background: #eef2f4; }

.header.banniere-login {
    padding: 46px 24px 84px;
    min-height: 0;
    display: block;
    border-radius: 0 0 32px 32px;
    background: #161F27;
    overflow: hidden;
    position: relative;
}

.header-bg {
    position: absolute;
    inset: -20%;
    background: url('https://virttech.site/logo.png') center / cover no-repeat;
    filter: blur(36px) saturate(1.35) brightness(.75);
    opacity: .55;
    transform: scale(1.2);
}

.header-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 240px at 88% 0%, rgba(212, 175, 55, .40), transparent 60%),
        radial-gradient(420px 220px at 5% 100%, rgba(212, 175, 55, .22), transparent 65%),
        linear-gradient(180deg, rgba(22, 31, 39, .22), rgba(22, 31, 39, .86));
}

.header-contenu {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding-top: 4px;
}

.header-marque {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--or);
}

.header-marque small {
    font-size: .56rem;
    letter-spacing: .18em;
    color: #9fb0ba;
    margin-top: 4px;
    font-weight: 500;
}

.header.banniere-login h1 {
    margin: 0;
    max-width: 470px;
    font-size: clamp(1.12rem, 4.3vw, 1.55rem);
    line-height: 1.3;
    letter-spacing: -.02em;
    color: #fff;
}

.header-reseaux {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.btn-reseau {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}

.btn-reseau:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, .22);
    border-color: rgba(212, 175, 55, .55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.btn-wa { background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .35); }
.btn-tt { background: rgba(255, 255, 255, .10); }

.banniere-login::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 140px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, transparent, var(--or), transparent);
    z-index: 3;
}

.form-card {
    margin-top: -30px;
}

/* =========================================
   VERSION PC : bannière à gauche, formulaire à droite
   ========================================= */
@media (min-width: 900px) {
    body {
        display: grid;
        grid-template-columns: minmax(420px, 46%) 1fr;
        align-items: stretch;
        min-height: 100vh;
        background: #eef2f4;
    }

    .header.banniere-login {
        min-height: 100vh;
        height: 100%;
        margin: 0;
        border-radius: 0 34px 34px 0;
        padding: 64px 52px;
        display: flex;
        align-items: center;
    }

    .header-contenu {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        gap: 18px;
    }

    .header-marque { align-items: flex-start; }

    .header.banniere-login h1 {
        max-width: 440px;
        font-size: clamp(1.6rem, 2.4vw, 2.1rem);
        line-height: 1.25;
    }

    .header-reseaux { justify-content: flex-start; }

    .form-card {
        margin: 0;
        max-width: 440px;
        width: 100%;
        justify-self: center;
        align-self: center;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 48px 32px;
        overflow: visible;
    }
}
