body.login {
  background: linear-gradient(to bottom right, #0d0d0d, #1a1a1a);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#login {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 153, 0.3);
  text-align: center;
}

#login h1 {
  margin-bottom: 1.5rem;
}

#login h1 a {
  background-image: url('/wp-content/uploads/2024/04/logo2-trans.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 180px;
  height: 90px;
  margin: 0 auto;
  display: block;
  text-indent: -9999px;
}

.login form {
  margin-top: 1rem;
  background: transparent;
  border: none;
  padding: 0;
}

.login label {
  color: #fff;
  text-align: left;
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

/* Champs texte fond blanc, texte noir */
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  padding: 10px 15px;
  background: #fff !important;
  border: 1px solid #888;
  border-radius: 8px;
  color: #000 !important;
  font-size: 16px !important;
  line-height: 1.4;
  box-sizing: border-box;
  caret-color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* États focus/hover actifs */
#loginform input[type="text"]:focus,
#loginform input[type="text"]:hover,
#loginform input[type="text"]:active,
#loginform input[type="password"]:focus,
#loginform input[type="password"]:hover,
#loginform input[type="password"]:active {
  background-color: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
}

/* Chrome autofill correction */
#loginform input:-webkit-autofill,
#loginform input:-webkit-autofill:focus,
#loginform input:-webkit-autofill:hover,
#loginform input:-webkit-autofill:active {
  background-color: #fff !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
  caret-color: #000 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

/* "Se souvenir de moi" bien aligné */
.login .forgetmenot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.login .forgetmenot input[type="checkbox"] {
  transform: translateY(1px);
}

.login .forgetmenot label {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
}

/* Bouton submit */
.wp-core-ui .button-primary {
  background-color: #ff0099;
  color: #000 !important;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(255, 0, 153, 0.4);
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}

.wp-core-ui .button-primary:hover {
  background-color: #e60087;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(255, 0, 153, 0.6);
}

/* Liens */
.login #nav,
.login #backtoblog {
  margin-top: 1.5rem;
}

.login #nav a,
.login #backtoblog a {
  color: #aaa;
  transition: color 0.3s;
}

.login #nav a:hover,
.login #backtoblog a:hover {
  color: #ff0099;
}

/* Messages */
.login .message,
.login .error {
  border-left: 4px solid #ff0099;
  background: #2a2a2a;
  color: #fff;
  padding: 10px 12px;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

/* Masquer langue et politique */
.language-switcher,
.privacy-policy-page-link {
  display: none !important;
}


.wp-core-ui .button-primary:focus {
  background-color: #ff0099 !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(255, 0, 153, 0.4) !important;
  outline: none !important;
}