/* ===========================
   Page de connexion AAGEC
   =========================== */

/* Fond général */
body.login {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(
    circle at top,
    #cce9f5 0,
    #f5f7fb 55%,
    #f5f7fb 100%
  ) !important;

  /* centrage global */
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* empile #login + switcher langue */
  align-items: center; /* centre horizontalement */
  justify-content: center; /* centre verticalement */
  padding: 2rem 1rem;
}

/* Conteneur principal */
body.login #login {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

/* Logo AAGEC */
body.login #login h1 {
  margin-bottom: 1.5rem;
}

body.login #login h1 a {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 220px;
  height: 60px;
  margin: 0 auto 0.5rem;
}

/* Carte glass du formulaire */
body.login form {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px rgba(2, 82, 112, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.02);
  backdrop-filter: blur(18px);
}

/* Labels */
body.login label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

/* Champs texte */
body.login form .input,
body.login form input[type="text"],
body.login form input[type="password"] {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(248, 250, 252, 0.9);
  box-shadow: none;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border-color 150ms ease, box-shadow 150ms ease,
    background-color 150ms ease, transform 150ms ease;
}

body.login form .input:focus,
body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus {
  border-color: #2c9dd5;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(44, 157, 213, 0.3),
    0 0 0 6px rgba(44, 157, 213, 0.1);
  transform: translateY(-1px);
}

/* Bouton “Se connecter” */
body.login .wp-core-ui .button-primary {
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(135deg, #025270, #2c9dd5);
  border-color: #025270;
  color: #ffffff;
  font-weight: 600;
  text-transform: none;
  box-shadow: 0 12px 25px rgba(2, 82, 112, 0.35);
  padding: 0.6rem 1.2rem;
  height: auto;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus {
  background: linear-gradient(135deg, #013e52, #238ac0);
  border-color: #013e52;
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(2, 82, 112, 0.45);
}

/* Cases à cocher (Se souvenir de moi) */
body.login .forgetmenot input[type="checkbox"] {
  accent-color: #025270;
}

/* Liens nav / back */
body.login #nav,
body.login #backtoblog {
  text-align: center;
  margin: 1rem 0 0;
}

body.login #nav a,
body.login #backtoblog a {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  transition: color 150ms ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: #025270;
  text-decoration: underline;
}

/* Messages info / succès */
body.login .message,
body.login .login .notice {
  border-left: 4px solid #2c9dd5;
  background: #e3f1f8;
  color: #0f172a;
  border-radius: 18px;
  margin: 0 0 16px;
  padding: 12px 14px;
}

/* Erreurs de login */
body.login #login_error {
  border-left: 4px solid #e11d48;
  background: #fef2f2;
  color: #7f1d1d;
  border-radius: 18px;
  margin: 0 0 16px;
  padding: 12px 14px;
}

/* Texte “Mot de passe oublié ?” un peu plus léger */
body.login #nav {
  margin-top: 0.75rem;
}

/* Optionnel : mini badge / baseline sous le logo */
body.login #login:before {
  content: "Conseil \00B7 Audit \00B7 Expertise comptable";
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(2, 82, 112, 0.55);
  margin-bottom: 1.25rem;
}

/* Sélecteur de langue centré */
body.login .language-switcher {
  margin-top: 1.5rem;
  text-align: center;
}

body.login .language-switcher select,
body.login .language-switcher button {
  font-size: 0.85rem;
}

/* Respect des gens qui ont prefs reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.login form .input,
  body.login .wp-core-ui .button-primary {
    transition: none;
  }
}
