/* ---------------------------
   LOGIN PAGE STYLE
   --------------------------- */

   :root {
    --primary: #4f46e5;      /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --background: #f9fafb;   /* Gray-50 */
    --text: #111827;         /* Gray-900 */
    --muted: #6b7280;        /* Gray-500 */
    --error: #dc2626;        /* Red-600 */
    --radius: 0.75rem;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: 0.25s ease-in-out;
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
  }
  
  /* Reset & layout */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font);
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text);
  }
  
  /* Card container */
  .login-card {
    background: #fff;
    width: 35%;
    
    max-width: 850px;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease;
  }
  
  .login-card h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
  }

  .login-card h4 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #D90229;
  }
  
  /* Error box */
  .error-box {
    background: #fee2e2;
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
  
  /* Form styles */
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
  }
  
  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  input[type="text"]:focus,
  input[type="password"]:focus {
    border-color: #D90229;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  }
  
  /* Remember me / forgot password */
  .form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
  }
  
  .form-row a {
    color: #D90229;
    text-decoration: none;
    transition: color var(--transition);
  }
  
  .form-row a:hover {
    color: #D90429;
  }
  
  button {
    background: #D90229;;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
  }
  
  button:hover {
    background: #D90429;
    transform: translateY(-2px);
  }
  
  button:active {
    transform: translateY(0);
  }
  
  /* Footer */
  .footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  .footer-text a {
    color: #D90229;
    text-decoration: none;
  }
  
  .footer-text a:hover {
    text-decoration: underline;
  }
  
  /* Small animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .login-card {
      max-width: none;      /* enlève la limite */
      width: 90%;   
      padding: 1.5rem;      /* réduit un peu le padding */
      margin: 1rem auto;    /* centre bien sur l’écran */
      transform: scale(1.05);      /* ✅ petit zoom visuel */
      transform-origin: center top; /* centre le zoom */
    }
  
    .login-card h1 {
      font-size: 1.4rem;    /* texte plus compact */
    }
  
    input,
    button {
      font-size: 0.95rem;   /* évite que le texte dépasse */
    }
  }
  
  
  
  
  /* Password field wrapper */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 2.5rem; /* espace pour le bouton 👁️ */
}

.toggle-password {
  position: relative;
  float:right;
  margin-top:-2.5em;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.0rem;
  color: #9ca3af;
  transition: color var(--transition);
}

.toggle-password:hover {
  color: #D90229;
}

