/* =========================
FORMULAIRE
========================= */


* {
    box-sizing: border-box;
    }
  
  body {
    font-family: "Quicksand";
  margin: 0;
  min-height: 100vh;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  font-family: Arial, Helvetica, sans-serif;
  
  background: #172A19;
  color: #ffffff;
  
  padding: 20px;
  }
  
  /* =========================
  TITRE
  ========================= */
  
  h1 {
  margin: 0 0 30px;
  
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  }
  
  

#loginForm {
    width: 100%;
    max-width: 400px;
    
    display: flex;
    flex-direction: column;
    
    gap: 15px;
    
    padding: 35px;
    
    background: #244127;
    

    
    border-radius: 12px;
    
    box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4);
    }
    
    /* =========================
    INPUTS
    ========================= */
    
    #loginForm input {
        font-family: "Quicksand";
    width: 100%;
    
    padding: 14px 16px;
    
    font-size: 15px;
    
    color: white;
    
    background: #262626;
    
    border: 1px solid #444;
    
    border-radius: 6px;
    
    outline: none;
    
    transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
    }
    
    #loginForm input::placeholder {
    color: #888;
    }
    
    #loginForm input:focus {
    border-color: #EAEBA0;
    
    box-shadow:
    0 0 0 3px rgba(234, 235, 160, 0.1);
    }
    
    /* =========================
    BOUTON
    ========================= */
    
    #loginForm button {
        font-family: "Quicksand";
    margin-top: 10px;
    
    padding: 14px;
    
    font-size: 15px;
    font-weight: 600;
    
    color: #111;
    
    background: #EAEBA0;
    
    border: none;
    
    border-radius: 6px;
    
    cursor: pointer;
    
    transition:
    transform 0.2s ease,
    opacity 0.2s ease;
    }
    
    #loginForm button:hover {
    opacity: 0.9;
    
    transform: translateY(-1px);
    }
    
    #loginForm button:active {
    transform: translateY(0);
    }
    
    /* =========================
    MESSAGE D'ERREUR
    ========================= */
    
    #error {
    width: 100%;
    max-width: 400px;
    
    min-height: 20px;
    
    margin-top: 15px;
    
    text-align: center;
    
    color: #ff6b6b;
    
    font-size: 14px;
    }
    
    /* =========================
    MOBILE
    ========================= */
    
    @media (max-width: 480px) {
    
    h1 {
    font-size: 24px;
    }
    
    #loginForm {
    padding: 25px 20px;
    }
    
    }
    

    /* =========================
   MOT DE PASSE
========================= */

.password-container {
    position: relative;
  
    width: 100%;
  }
  
  
  .password-container input {
    padding-right: 50px !important;
  }
  
  
  .password-container button {
    position: absolute;
  
    top: 50%;
    right: 12px;
  
    transform: translateY(-50%);
  
    margin: 0 !important;
    padding: 5px !important;
  
    background: transparent !important;
  
    color: #EAEBA0 !important;
  
    border: none !important;
  
    cursor: pointer;
  
    font-size: 18px;
  
    line-height: 1;
  
    opacity: 0.8;
  }
  
  
  .password-container button:hover {
    opacity: 1;
  
    transform: translateY(-50%) !important;
  }


  #togglePassword {
    position: absolute;
  
    top: 50%;
    right: 12px;
  
    transform: translateY(-50%);
  
    width: 30px;
    height: 30px;
  
    padding: 5px !important;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: transparent !important;
    border: none !important;
  
    color: #888 !important;
  
    cursor: pointer;
  
    opacity: 0.7;
  
    transition: opacity 0.2s ease, color 0.2s ease;
  }
  
  #togglePassword:hover {
    opacity: 1;
  
    color: #EAEBA0 !important;
  
    transform: translateY(-50%) !important;
  }
  
  #togglePassword svg {
    width: 18px;
    height: 18px;
  
    fill: none;
    stroke: currentColor;
  
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  #eyeClosed {
    display: none;
  }

