/* ---------- Grundlayout ---------- */
body.login {
  background: #fff;              /* rechte Seite weiß */
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Linke Hälfte: Farbverlauf + dezentes animiertes Muster */
body.login::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;            /* top:0 right:auto bottom:0 left:0 */
  width: 50vw;
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(12,165,84,0.18), transparent 60%),
    radial-gradient(900px 700px at 110% 110%, rgba(35,58,97,0.25), transparent 60%),
    linear-gradient(135deg, #233A61 0%, #0CA554 100%);
  z-index: 0;
}

body.login::after {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 50vw;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px,
      transparent 2px, transparent 14px);
  mix-blend-mode: overlay;
  animation: docgenSlide 6s linear infinite;
  z-index: 1;
}

@keyframes docgenSlide {
  from { background-position: 0 0; }
  to   { background-position: 240px 0; }
}

/* ---------- Login-Panel rechts ---------- */
#login {
  position: fixed;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;                 /* breiter als Standard */
  max-width: 90vw;
  padding: 44px 48px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 2px 4px 34px rgba(0,0,0,0.12);
  z-index: 2;
}

/* Logo oben mittig – URL HIER anpassen */
.login h1 {
  margin: 0 0 16px 0 !important;
  text-align: center;
}
.login h1 a {
  background-image: url('https://u-i-n.net/wp-content/uploads/cropped-U.I.N.-Botschaft-Kopie_Icon.webp') !important; /* ← DEINE LOGO-URL */
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  width: 260px !important;
  height: 120px !important;
  margin: 0 auto 8px !important;
  text-indent: -9999px; /* WP-Default, belassen */
  outline: none !important;
}

/* Formular-Felder */
.login form {
  margin-top: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.login form .input,
.login input[type="text"],
.login input[type="password"] {
  width: 100% !important;
  border-radius: 5px !important;
  border: 1px solid #d7dbe3 !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff !important;
}
.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
  border-color: #0CA554 !important;
  box-shadow: 0 0 0 4px rgba(12,165,84,0.15) !important;
  outline: none !important;
}

/* Labels / Hinweise */
.login label {
  font-weight: 600 !important;
  color: #1d2b44 !important;
}

/* Login-Button */
.wp-core-ui .button-primary {
  background: #0CA554 !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 6px 35px !important;
  height: auto !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 14px rgba(12,165,84,0.25) !important;
  transition: transform .05s ease, box-shadow .2s ease;
}
.wp-core-ui .button-primary:hover {
  background: #0a9149 !important;
  box-shadow: 0 10px 20px rgba(12,165,84,0.32) !important;
}
.wp-core-ui .button-primary:active {
  transform: translateY(1px);
}

/* Checkbox & Links */
.forgetmenot label {
  font-weight: 500 !important;
}
.login #nav a,
.login #backtoblog a {
  color: #233A61 !important;
}
.login #nav a:hover,
.login #backtoblog a:hover {
  color: #0CA554 !important;
}

/* Abstand unter Formular */
#nav, #backtoblog {
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  #login { right: 4%; width: 480px; }
}
@media (max-width: 960px) {
  #login { right: 3%; width: 440px; }
}
@media (max-width: 782px) {
  body.login::before,
  body.login::after { display: none; }
  #login {
    position: static;
    transform: none;
    margin: 8vh auto;
    width: min(92vw, 520px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.10);
  }
}

/* ===== Sprache-Switcher - unter "Passwort vergessen", zentriert ===== */
#language-switcher {
  position: flex !important;    /* falls irgendwo absolute gesetzt wurde */
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 8px;
  margin: 12px auto 0;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  background: transparent;
}

/* Select + Button styling */
#language-switcher select {
  padding: 1px 38px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  background: #fff;
  color: #222;
}

#language-switcher .button {
  padding: 6px 38px;
  border-radius: 5px;
  border: none;
  background: #0CA554;      /* dein Grün */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

#language-switcher .button:hover {
  background: #fff;
  color: #0CA554;
  border: 1px solid #0CA554;
}

/* Handy: auf Mobil etwas schmaler machen */
@media (max-width: 480px) {
  #language-switcher {
    max-width: 260px;
    gap: 6px;
  }
  #language-switcher select { font-size: 0.9rem; }
}