/* ===== Global Layout ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #6366f1 0%, #f9f8f9 100%);
  font-family: "Inter", sans-serif;
}

/* ===== Header ===== */
.login-page .header {
  display: flex;
  align-items: center;
  height: 12vh;
  padding: 0 24px;
  background: #ffffff;
  /* Blanc pur */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* ombre légère */
}

.login-page .logo-icon {
  height: 55px;
  width: auto;
  margin-left: 12px;
  filter: brightness(0) saturate(100%);
  /* Force l’image en noir si SVG/PNG coloré */
}


/* ===== Container ===== */
.login-page .login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ===== Card ===== */
.login-page .login-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.8s ease-in-out;
}

/* Animation douce */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Title ===== */
.login-page .login-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 32px;
}

/* ===== Input Groups ===== */
.login-page .form-group {
  margin-bottom: 24px;
}

.login-page .input-group {
  position: relative;
}

.login-page .form-control {
  width: 100%;
  border: 1.8px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 48px 14px 16px;
  font-size: 15px;
  background-color: #f9fafb;
  transition: all 0.3s ease;
}

.login-page .form-control:focus {
  border-color: #6366f1;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

.login-page .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.login-page .input-icon:hover {
  color: #4f46e5;
}

/* ===== Error Messages ===== */
.login-page .form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
}

/* ===== Button ===== */
.login-page .btn-login {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-page .btn-login:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.login-page .btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .login-page .login-card {
    padding: 32px 24px;
  }

  .login-page .login-title {
    font-size: 22px;
  }
}