/* ==========================================================================
   promosie.de – Custom WordPress Backend Login Design (wp-login.php)
   ========================================================================== */

body.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #242424;
  background-color: #0f2a3d;
  background-image:
    linear-gradient(135deg, rgba(15, 42, 61, 0.94) 0%, rgba(1, 79, 134, 0.88) 55%, rgba(42, 111, 151, 0.84) 100%),
    url('https://2027.promosie.de/wp-content/uploads/3d-rendering-group-professional-buildings-scaled-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Container */
#login {
  width: 100%;
  max-width: 440px;
  padding: 16px 0;
  margin: 0 auto;
}

/* promosie Logo */
.login h1 {
  margin-bottom: 24px;
  text-align: center;
}

.login h1 a {
  display: block;
  width: 240px;
  height: 54px;
  margin: 0 auto;
  background-image: url('https://2027.promosie.de/wp-content/uploads/promosie_ohne-subline-1200x266-1.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  outline: none;
}

.login h1 a:focus {
  box-shadow: 0 0 0 3px rgba(142, 197, 230, 0.55);
  border-radius: 6px;
}

/* Login-Karte */
.login form {
  margin-top: 0;
  margin-left: 0;
  padding: 36px 34px 32px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #2a6f97;
  border-radius: 16px;
  box-shadow: 0 28px 64px rgba(8, 28, 44, 0.36);
}

/* Labels */
.login label {
  display: block;
  margin-bottom: 6px;
  color: #242424;
  font-size: 14px;
  font-weight: 600;
}

/* Eingabefelder */
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  margin: 0 0 18px 0;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #242424;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  background-color: #ffffff;
  border-color: #2a6f97;
  box-shadow: 0 0 0 4px rgba(42, 111, 151, 0.16);
  outline: none;
}

/* Passwort-Feld & Auge-Icon sauber ausrichten */
.login .wp-pwd {
  position: relative;
  margin-bottom: 18px;
}

.login .wp-pwd .input {
  margin-bottom: 0;
  padding-right: 48px;
}

.login .button.wp-hide-pw {
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #54595f;
  box-shadow: none;
}

.login .button.wp-hide-pw:hover,
.login .button.wp-hide-pw:focus {
  color: #2a6f97;
  background-color: #f1f5f9;
  box-shadow: none;
}

/* „Angemeldet bleiben“ */
.login .forgetmenot {
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px 0;
}

.login .forgetmenot label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #54595f;
  cursor: pointer;
}

.login input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background-color: #f8fafc;
  accent-color: #2a6f97;
  box-shadow: none;
}

.login input[type="checkbox"]:checked::before {
  margin: -3px 0 0 -4px;
}

.login input[type="checkbox"]:focus {
  border-color: #2a6f97;
  box-shadow: 0 0 0 3px rgba(42, 111, 151, 0.16);
}

/* Primärer Anmelden-Button */
.login .submit {
  margin: 0;
  padding: 0;
}

.wp-core-ui .button-primary {
  float: none;
  width: 100%;
  min-height: 50px;
  padding: 12px 24px;
  background-color: #2a6f97;
  border: 2px solid #2a6f97;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background-color: #014f86;
  border-color: #014f86;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(1, 79, 134, 0.24);
}

.wp-core-ui .button-primary:active {
  transform: translateY(0);
}

/* Hinweis- & Fehlermeldungen */
.login .message,
.login .notice,
.login .success,
.login #login_error {
  margin: 0 0 18px 0;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2a6f97;
  border-radius: 10px;
  color: #242424;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 28px rgba(8, 28, 44, 0.18);
}

.login #login_error,
.login .notice-error {
  border-left-color: #dc2626;
}

.login .success,
.login .notice-success {
  border-left-color: #16a34a;
}

/* Links unter der Login-Karte */
.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
  margin: 16px 0 0 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover,
.login #nav a:focus,
.login #backtoblog a:focus {
  color: #ffffff;
  text-decoration: underline;
  box-shadow: none;
}

/* Sprachauswahl unten (falls aktiv) */
.language-switcher {
  margin-top: 20px;
  text-align: center;
}

.language-switcher form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.language-switcher label .dashicons {
  color: #ffffff;
}

.language-switcher select {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #242424;
  font-size: 14px;
  padding: 4px 28px 4px 10px;
}

.language-switcher .button {
  background-color: #2a6f97;
  border-color: #2a6f97;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 500;
}

.language-switcher .button:hover {
  background-color: #014f86;
  border-color: #014f86;
  color: #ffffff;
}

/* Mobile Optimierung */
@media (max-width: 480px) {
  .login form {
    padding: 26px 22px 24px;
    border-radius: 14px;
  }

  .login h1 a {
    width: 200px;
    height: 44px;
  }
}