/**
 * Formaxis — Login page v4.0
 */

/* Import Inter depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #12192c;
  position: relative;
  overflow: hidden;
}

/* Fond décoratif animé */
body.login-page::before,
body.login-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}

body.login-page::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #667eea, transparent 70%);
  top: -120px; right: -120px;
  animation: orb1 14s ease-in-out infinite alternate;
}

body.login-page::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #764ba2, transparent 70%);
  bottom: -100px; left: -100px;
  animation: orb2 18s ease-in-out infinite alternate;
}

@keyframes orb1 { to { transform: translate(40px, 30px); } }
@keyframes orb2 { to { transform: translate(-30px, -40px); } }

/* Boîte principale */
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255,255,255,.98);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.1);
}

/* Logo */
.login-logo { text-align: center; margin-bottom: 32px; }

.login-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(102,126,234,.5);
}

.login-logo-icon i { font-size: 2rem; color: #fff; }

.login-logo h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #12192c;
  margin: 0 0 4px;
  letter-spacing: -.5px;
}

.login-logo p {
  color: #718096;
  font-size: .85rem;
  margin: 0;
}

/* Formulaire */
.login-form-group { margin-bottom: 18px; }

.login-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
}

.login-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  color: #1a202c;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}

.login-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,.16);
}

.login-input::placeholder { color: #a0aec0; }

/* Le caractère bullet de masquage n'existe pas dans Inter → police système */
input[type="password"].login-input {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Bouton */
.login-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(102,126,234,.35);
  letter-spacing: .2px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102,126,234,.5);
}

.login-btn:active { transform: translateY(0); }

/* Erreur */
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .875rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
.login-footer {
  text-align: center;
  font-size: .75rem;
  color: #a0aec0;
  margin-top: 22px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

/* Grille de points décorative */
.login-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
