/* Importation de la police */
@font-face {
    font-family: 'Overseer Italic';
    src: url('/static/fonts/Overseer Italic.otf') format('opentype');
}

/* Styles généraux pour le corps */
body {
    background-image: url('/static/images/indeximage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Conteneur principal */
.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

/* -----------------------------
   SECTION : CONNEXION
   ----------------------------- */
   .hidden {
    display: none;
  }

  .visible {
    display: block;
  }

/* Style pour le formulaire de connexion */
#login-form form {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 1);
    width: 300px;
    height: 300px;
    text-align: center;
}

/* Style pour le titre du formulaire de connexion */
#login-form .form-title {
    font-family: 'Overseer Italic';
    font-size: 38px;
    margin-top: 15px;
    color: black;
    text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    text-align: center;
}

#login-form input[type="email"],
#login-form input[type="password"] {
    width: 200px;
    height: 40px;
    font-size: 14px;
    border: 1px solid black;
    border-radius: 12px;
    color: #333;
    outline: none;
    background: #f5f5f5;
    padding: 0 20px;
    transition: border 0.3s, box-shadow 0.5s;
    margin-bottom: 20px;
}

#login-form input::placeholder {
    color: #aaa;
}

#login-form input:focus {
    border-color: #fff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#login-form button {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.5);
    color: black;
    border: 2px solid #333;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s;
    margin: 0 auto;
    margin-top: 10px;
}

#login-form button:hover {
    background: linear-gradient(to right, #151718, #808080);
    color: white;
}

#login-form button:active {
    transform: scale(0.95);
}

#login-form .forgot-password {
    display: block;
    margin-top: 5px;
    text-align: center;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    text-shadow: 0px 0px 1px rgba(255, 255, 255, 1);
}

#login-form .forgot-password:hover {
    text-decoration: underline;
}

#login-form .create-account-btn {
    display: block; /* Assure que le bouton est traité comme un bloc */
    margin: 20px auto; /* Centre le bouton horizontalement */
}

/* -----------------------------
   SECTION : INSCRIPTION
   ----------------------------- */

/* Style pour le formulaire d'inscription */
.registration-container form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 1);
    width: 300px;
    padding: 20px;
}

/* Style pour chaque groupe label + input */
.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Style pour les labels */
.input-group label {
    flex: 1;
    text-align: left;
    font-size: 12px;
    color: #333;
}

/* Style spécifique pour les champs de saisie (input) */
.registration-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 12px;
    color: #333;
    text-align: left;
}

/* Style spécifique pour les dropdowns (select) */
.registration-container select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 12px;
    color: #333;
}

/* Style du bouton "Créer un compte" */
.registration-container #create-account-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0);
    color: black;
    border: 2px solid #333;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s;
    margin: 0 auto;
    margin-top: 20px;
}

.registration-container #create-account-btn:hover {
    background: linear-gradient(to right, #151718, #808080);
    color: white;
}

.registration-container #create-account-btn:active {
    transform: scale(0.95);
}

/* Style pour le lien de retour à la connexion dans l'inscription */
.registration-container .back-to-login {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.registration-container .back-to-login a {
    color: #007bff;
}

.registration-container .back-to-login a:hover {
    text-decoration: underline;
}

/* -----------------------------
   SECTION : RÉINITIALISATION DU MOT DE PASSE
   ----------------------------- */

/* Style pour le formulaire de réinitialisation du mot de passe */
.reset-password-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 1);
    width: 300px;
    padding: 20px;
    text-align: center;
}

/* Style des champs de saisie pour réinitialiser le mot de passe */
.reset-password-container input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid black;
    border-radius: 12px;
    background: #f5f5f5;
    width: 200px;
    margin: 20px auto; /* Centre le bouton horizontalement */
}

/* Style du bouton Réinitialiser */
.reset-password-container .reset-button {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.5);
    color: black;
    border: 2px solid #333;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s;
    margin: 0 auto;
}

.reset-password-container .reset-button:hover {
    background: #333;
}

/* Style du lien de retour à la connexion dans la réinitialisation */
.reset-password-container .back-to-login {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.reset-password-container .back-to-login a {
    color: #007bff;
}

.reset-password-container .back-to-login a:hover {
    text-decoration: underline;
}

/* Style pour le cadre d'information */

.obligatoire {
    text-align: center;
    color: black;
    font-size: 0.9em;
    margin-top: 1px;
  }

#register-form .info-panel {
    width: 300px;
    height: 340px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    position: absolute;
    right: -320px; /* Ajustez cette valeur pour déplacer le panneau à droite du formulaire */
    top: 150px; /* Ajustez pour aligner le panneau avec le formulaire */
    text-align: center;
    border: 2px solid #333;
    z-index: 10; /* Assure que le panneau s'affiche au-dessus des autres éléments */
}



/* Style pour le titre */
.info-panel h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

/* Style pour le texte d'information */
.info-panel p {
    font-size: 14px;
    color: black;
}

/* Lien stylisé */
.info-panel a {
    color: #007bff;
    text-decoration: none;
}

.info-panel a:hover {
    text-decoration: underline;
}

/* Style pour la force du mot de passe */
.password-strength {
    margin-top: 15px;
}

#password-strength-meter {
    width: 100%;
    margin: 5px 0;
}

/* Style pour le texte du temps de crackage */
.crack-time {
    font-size: 12px;
    color: #333;
    margin-top: 10px;
}


/* -----------------------------
   AUTRES STYLES
   ----------------------------- */

/* Styles pour les messages flash */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.3s ease-in-out;
}

.alert-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.alert-danger {
    background-color: #f44336;
    border-color: #f44336;
}

.alert-warning {
    background-color: #ff9800;
    border-color: #ff9800;
}

.alert-info {
    background-color: #2196F3;
    border-color: #2196F3;
}

