/* === PAGE DE CONNEXION === */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 16px;
  background: var(--bg-page);
}

.auth-box {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
}

/* En-tête */
.auth-header {
  background: var(--primary);
  color: #fff;
  border-radius: var(--rad) var(--rad) 0 0;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  margin: -32px -28px 24px -28px;
}

/* Titres */
.auth-box h4 {
  text-align: center;
  margin-bottom: 8px;
  color: var(--txt);
}

.auth-box p {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Champs */
.auth-box .form-control {
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--txt);
  box-shadow: none;
}

.auth-box .form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 122, 213, 0.2);
}

/* Bouton */
.auth-box button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--rad);
  padding: 10px;
  width: 100%;
  font-weight: 600;
  transition: background var(--t-fast) var(--easing);
}

.auth-box button[type="submit"]:hover {
  background: #7a68c8;
}

/* Liens */
.auth-box a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast) var(--easing);
}

.auth-box a:hover {
  color: var(--violet);
  text-decoration: underline;
}

/* Séparateur */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.separator .line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--line);
}

.separator .text {
  margin: 0 12px;
  color: var(--muted);
  font-size: 14px;
}


/* Boutons sociaux */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* espace entre icône et texte */
  font-weight: 600;
  text-decoration: none !important;
  padding: 12px 20px;
  border-radius: var(--rad);
  border: 1px solid var(--border);
  transition: background var(--t-fast) var(--easing);
  margin-bottom: 12px; /* espace entre les deux boutons */
  line-height: 1.2; /* alignement vertical du texte */
}

.social-btn i {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-btn {
  border-color: #db4437;
  color: #db4437;
}


.github-btn {
  border-color: #24292f;
  color: #24292f;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-box {
    padding: 24px 20px;
  }

  .auth-header {
    font-size: 18px;
  }
}


.position-relative {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--primary);
}

