/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-gradient-start: #0f172a; /* Bleu sombre de votre sidebar */
  --bg-gradient-end: #1e293b;
  --primary-color: #1571ad;    /* Bleu primaire de vos styles */
  --primary-hover: #074c7a;    /* Bleu secondaire */
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Container de la boîte */
.login-container {
  width: 100%;
  max-width: 420px;
  perspective: 1000px;
}

.login-box {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  text-align: center;
}

/* En-tête */
.login-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 15px;
  margin-bottom: 5px;
}

.login-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Logo "3M" stylisé en CSS */
.logo-circle {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: white;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(21, 113, 173, 0.4);
}

/* Formulaire */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  opacity: 0.5;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.input-wrapper input:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 113, 173, 0.15);
}

/* Options supplémentaires (Se souvenir, Mot de passe oublié) */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Bouton principal */
.btn-login {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login:hover {
  background-color: var(--primary-hover);
}

.btn-login:active {
  transform: scale(0.98);
}

/* Pied de page */
.login-footer {
  margin-top: 35px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.login-footer span {
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}