/* ============================
   PAGE DE CONNEXION (login)
   ============================ */

body.login-page {
    min-height: 100dvh; /* hauteur dynamique moderne */
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at top left, #2b2b5a 0, transparent 55%),
        radial-gradient(circle at bottom right, #1a4a5e 0, transparent 55%),
        linear-gradient(135deg, #050510 0%, #050510 40%, #080818 100%);

    color: #f5f5ff;
    overflow: hidden; /* empêche l'apparition de la bande */
}


/* Conteneur global login */
.login-wrapper {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Boîte de connexion */
.login-box {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    padding: 24px 20px;
    background: radial-gradient(circle at top left, rgba(128, 90, 213, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.10), transparent 55%),
                rgba(10, 10, 25, 0.96);
    border-radius: 14px;
    border: 1px solid rgba(129, 140, 248, 0.5);
    box-shadow:
        0 0 14px rgba(129, 140, 248, 0.35),
        0 0 30px rgba(59, 130, 246, 0.35);
    backdrop-filter: blur(10px);
}

/* Titre "GIL" et sous-titre */
.login-title {
    text-align: center;
    margin: 0 0 4px 0;
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e7ff;
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.9);
}

.login-subtitle {
    text-align: center;
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: #9ca3ff;
    opacity: 0.9;
}

/* Titre "Connexion" dans la box */
.login-box h2 {
    margin: 0 0 14px 0;
    font-size: 1.3rem;
    color: #c4d0ff;
}

/* Formulaire de connexion */
.login-box form {
    margin-top: 8px;
}

.login-box label {
    display: block;
    font-size: 0.88rem;
    color: #cbd5ff;
    margin-bottom: 10px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 11px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 255, 0.45);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.38), transparent 55%),
                #050514;
    color: #e5e7ff;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: #818cf8;
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, 0.5),
        0 0 14px rgba(56, 189, 248, 0.35);
}

/* Bouton "Se connecter" */
.login-box input[type="submit"] {
    width: 100%;
    margin-top: 14px;
    padding: 10px 0;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: #f9fafb;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow:
        0 6px 18px rgba(59, 130, 246, 0.55),
        0 0 18px rgba(129, 140, 248, 0.8);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.login-box input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.login-box input[type="submit"]:active {
    transform: translateY(0);
    box-shadow:
        0 3px 10px rgba(59, 130, 246, 0.4),
        0 0 10px rgba(129, 140, 248, 0.7);
}

/* Message d'erreur dans la box de login */
.login-box .error {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #fecaca;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
}





/* ================================
   LOGIN — FIX MOBILE 2025
   ================================ */

body.login-page {
    height: 100dvh;           /* Fix iPhone */
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;  /* centrage vertical fiable */
    align-items: center;

    background:
        radial-gradient(circle at top left, #2b2b5a 0, transparent 60%),
        radial-gradient(circle at bottom right, #1a4a5e 0, transparent 60%),
        linear-gradient(135deg, #03030a 0%, #050510 60%, #09091c 100%);

    overflow: hidden;         /* Supprime la bande */
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 0 20px;

    display: flex;
    justify-content: center;  /* centre la box */
    align-items: center;
}

.login-box {
    width: 100%;
    margin: 0 auto;          /* full center */
}

/* Bouton GIL Hack — mobile safe */
.login-hack-btn {
    width: 100%;
    padding: 12px 0;
    margin-top: 18px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, #5b4bff, #15a8ff);
    color: #f8f9ff;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow:
        0 6px 18px rgba(70, 110, 255, 0.45),
        0 0 22px rgba(130, 140, 255, 0.7);

    cursor: pointer;
    transition: 0.15s ease;
}

.login-hack-btn:hover {
    transform: translateY(-1px);
}

.login-hack-btn:active {
    transform: scale(0.98);
}
