/* ===============================
GLOBAL
=============================== */
body {
  background: #F8FAFC;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
}

/* ===============================
CONTAINER
=============================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;       /* ← AJOUT : occupe toute la hauteur */
  padding: 20px;
  box-sizing: border-box;  /* ← AJOUT : padding inclus dans le calcul */
}

/* ===============================
CARD
=============================== */
.login-card {
  width: 100%;             /* ← AJOUT : prend toute la largeur disponible */
  max-width: 900px;
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

/* ===============================
LEFT SIDE
=============================== */
.login-left {
  width: 45%;
  background: linear-gradient(135deg, #2563EB, #1E3A8A);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 40px;
  box-sizing: border-box;  /* ← AJOUT */
}

.login-left img {
  width: 120px;
  margin-bottom: 25px;
}

.login-left h3 {
  font-weight: 600;
  margin-bottom: 12px;
}

.login-left p {
  opacity: 0.9;
  line-height: 1.6;
}

/* ===============================
RIGHT SIDE
=============================== */
.login-right {
  width: 55%;
  padding: 50px 45px;
  box-sizing: border-box;  /* ← AJOUT */
}

/* ===============================
TITLE
=============================== */
.login-title {
  font-weight: 600;
  margin-bottom: 30px;
  color: #1E3A8A;
}

/* ===============================
FORM INPUTS
=============================== */
.form-label {
  font-size: 14px;
  margin-bottom: 5px;
}

.form-control {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #E2E8F0;
  appearance: none;
}

.form-control:focus {
  border-color: #2563EB;
  box-shadow: none;
}

.input-group-text {
  background: #F8FAFC;
  border-radius: 10px 0 0 10px;
  border: 1px solid #E2E8F0;
  border-right: none;
}

.input-group .form-control {
  border-left: none;
}

/* ===============================
BUTTON
=============================== */
.btn-login {
  background: #2563EB;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-weight: 500;
  transition: 0.25s;
  appearance: none;
}

.btn-login:hover {
  background: #1E3A8A;
  transform: translateY(-1px);
}

/* ===============================
SIGNUP TEXT
=============================== */
.signup-text {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.signup-text a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}

.signup-text a:hover {
  text-decoration: underline;
}
/* =================================
TABLETTES ET MOBILES (≤ 768px)
================================= */
@media (max-width: 768px) {
  .login-card {
    display: flex;
    flex-direction: column;
    width: calc(100% - 20px); /* ← 10px de chaque côté */
    max-width: 100%;
    border-radius: 12px;
    margin: 0 10px;           /* ← plus de margin-top, juste gauche/droite */
  }

  .login-left {
    width: 100%;
    box-sizing: border-box;
    padding: 30px 24px;
  }

  .login-right {
    width: 100%;
    box-sizing: border-box;
    padding: 30px 24px;
  }
}

/* =================================
MOBILES (≤ 480px)
================================= */
@media (max-width: 480px) {
  .login-card {
    display: flex;
    flex-direction: column;
    width: calc(100% - 20px);
    border-radius: 12px;
    margin: 0 10px;           /* ← pas d'espace en haut */
  }

  .login-left img {
    width: 80px;
  }

  .login-title {
    font-size: 18px;
    text-align: center;
  }

  .form-control {
    font-size: 16px;
  }
}