/* ===========================================================
   STYLE GLOBAL
   =========================================================== */

.login-container {
    background-color: #2f2f2f;
    border-radius: 12px;
    box-shadow: rgb(31 31 31 / 17%) 0px -23px 25px 0px inset,
      rgb(108 108 108 / 23%) 0px -36px 30px 0px inset,
      rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset,
      rgba(0, 0, 0, 0.06) 0px 2px 1px,
      rgba(0, 0, 0, 0.09) 0px 4px 2px,
      rgba(0, 0, 0, 0.09) 0px 8px 4px,
      rgba(0, 0, 0, 0.09) 0px 16px 8px,
      rgba(0, 0, 0, 0.09) 0px 32px 16px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.heading {
    color: #ffffff;
    font-weight: 500;
    font-size: 40px;
    margin-bottom: 5px;
}

.paragraph {
    color: #ffffff !important;
    font-weight: 400;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Champs */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    background: none;
    border: 1px solid #353535;
    padding: 15px 23px;
    font-size: 16px;
    border-radius: 8px;
    color: #979797;
    width: 100%;
    padding-right: 35px;
    box-shadow: rgb(136 136 136 / 17%) 0px -23px 25px 0px inset,
      rgb(81 81 81 / 23%) 0px -36px 30px 0px inset,
      rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset,
      rgba(0, 0, 0, 0.06) 0px 2px 1px,
      rgba(0, 0, 0, 0.09) 0px 4px 2px,
      rgba(0, 0, 0, 0.09) 0px 8px 4px,
      rgba(0, 0, 0, 0.09) 0px 16px 8px,
      rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.input-group input:focus {
    outline: none;
    border-color: #0073e6;
}

/* Icône œil */
.eye-icon {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #e8edf5;
}

/* Bouton */
button {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #0173ed;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background-color: #6f7070;
}

/* Bas du formulaire */
.bottom-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
}

.bottom-text a {
    color: #0173ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-text a:hover {
    color: #3f95f2;
}

/* Logo */
.login-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* Message d'erreur */
.custom-error-message {
    color: red !important;
    text-align: center;
    margin-top: -15px;
    margin-bottom: -5px;
    font-size: 14px;
    font-weight: bold;
}

/* ===========================================================
   MODE 2FA – cohérent avec ton style actuel
   =========================================================== */

.login-container.twofa-mode {
    padding-top: 20px;
}

/* Titre 2FA */
.login-container.twofa-mode h2,
.login-container.twofa-mode .paragraph {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 17px;
}


/* Style UNIQUEMENT pour le QR code */
.login-container.twofa-mode .setup-block img {
    display: block;
    margin: 0 auto;
    width: 220px;
    height: 220px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}

/* Texte bloc installation */
.login-container.twofa-mode .setup-block p {
    text-align: center;
    margin-top: 20px;
    color: #cfd4df;
}

/* Code manuel */
.login-container.twofa-mode code {
    display: block;
    margin: 0px auto 0 auto;
    padding: 0px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 33px;
    font-size: 16px;
    letter-spacing: 2px;
    text-align: center;
    color: #00eaff;
}

/* Bouton Valider */
.login-container.twofa-mode button {
    margin-top: 25px;
    width: 100%;
}
/* Texte "Première configuration :" dans la zone 2FA */
.login-container.twofa-mode .setup-block > p:first-of-type {
    color: #9f9a9a !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}

/* Texte "Code manuel :" */
.login-container.twofa-mode .setup-block > p:nth-of-type(2) {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-top: 20px !important;
    margin-bottom: 5px !important;
}

/* Code manuel */
.login-container.twofa-mode code {
    color: #00eaff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}
/* Augmenter l'espace au-dessus de "Première configuration :" */
.login-container.twofa-mode .setup-block > p:first-of-type {
    margin-top: -18px !important; /* augmente ou diminue ici */
}
