/* Anmeldeseite – Nachbau der WordPress-/LoginPress-Gestaltung (Maße vom Original gemessen) */
*, *::before, *::after { box-sizing: border-box; }

/* wie WordPress: Box senkrecht im Fenster zentriert (40 px Abstand oben) */
body.auth {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  padding: 40px 0 0;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

/* aus WordPress login.css: Unterstrich unterhalb der Unterlängen (g, p, …) statt unterbrochen */
body.auth a { text-underline-position: under; }

.auth__box { width: 378px; max-width: calc(100% - 32px); margin: auto; }

/* Logo: 251 × 84 px, Bild mittig darin */
.auth__logo { margin: 0 0 24px; }
.auth__logo a { display: flex; align-items: center; justify-content: center; width: 251px; height: 84px; margin: 0 auto; }
.auth__logo img { display: block; width: 251px; height: auto; }

.auth__message {
  margin: 0 0 20px;
  padding: 12px;
  background: #fff;
  border-left: 4px solid #00a0d2;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
.auth__message--error { border-left-color: #d63638; }
.auth__message a { color: #2271b1; }

.auth__form {
  margin: 0;
  padding: 30px 25px;
  background: #fff;
}

.auth__form label {
  display: block;
  margin: 0 0 10px;
  color: #2c3338;
  font-size: 14px;
  line-height: 19px;
}

.auth__user { margin: 0 0 20px; }
.auth__form--lost .auth__user:has(+ .auth__submit) { margin-bottom: 40px; } /* wie WordPress „Passwort zurücksetzen“ */
.auth__pass { margin: 0 0 18px; }

.auth__form input[type=email],
.auth__form input[type=text],
.auth__form input[type=password] {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 3px 5px 3px 15px;
  border: 1px solid #c3c4c7;
  border-radius: 0;
  background: #fff;
  color: #7f7f7f;
  font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  box-shadow: 0 0 0 transparent;
  outline: 2px solid transparent;
}

/* Passwort mit Auge */
.auth__pass-wrap { position: relative; }
.auth__pass-wrap input { padding-right: 40px !important; }
.auth__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 48px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #3858e9;
  line-height: 0;
  cursor: pointer;
}
.auth__toggle-show,
.auth__toggle-hide { color: #f6366a; }
.auth__toggle .auth-icon { display: block; }
.auth__toggle:not([aria-pressed=true]) .auth__toggle-hide,
.auth__toggle[aria-pressed=true] .auth__toggle-show { display: none; }

/* Angemeldet bleiben */
.auth__remember {
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0 0 20px;
  line-height: 19.5px;
}
.auth__form .auth__remember label {
  display: inline;
  margin: 0 4px 0 8px;
  font-size: 13px;
  line-height: 19.5px;
  cursor: pointer;
}
.auth__remember input {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #f6366a;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.auth__remember input:hover { border-color: #c3c4c7; }
.auth__remember input:checked { border-color: #f6366a; }
.auth__remember input:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%23F6366A'/%3E%3C/svg%3E") -4.4px -4px / 21px 21px no-repeat;
}

/* Hilfe-Sprechblase wie WordPress („Toggletip“) */
.auth__tooltip { display: inline-block; line-height: 0; }
.auth__tooltip-toggle {
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #50575e;
  cursor: pointer;
}
.auth__tooltip-toggle:focus-visible { color: #3858e9; }
.auth__tooltip-toggle .auth-icon { display: block; }

.auth__tooltip-bubble {
  position: fixed;
  inset: auto;
  width: 280px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .08);
  color: #1d2327;
  font-size: 13px;
  line-height: 19.5px;
  overflow: visible;
}
.auth__tooltip-bubble::before,
.auth__tooltip-bubble::after {
  content: '';
  position: absolute;
  left: var(--arrow, 50%);
  width: 0;
  height: 0;
  border-style: solid;
}
.auth__tooltip-bubble::before { bottom: -8px; margin-left: -8px; border-width: 8px 8px 0; border-color: #c3c4c7 transparent transparent; }
.auth__tooltip-bubble::after  { bottom: -7px; margin-left: -7px; border-width: 7px 7px 0; border-color: #fff transparent transparent; }
.auth__tooltip-text { display: block; padding-right: 24px; }
.auth__tooltip-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #50575e;
  line-height: 0;
  cursor: pointer;
}
.auth__tooltip-close:hover { color: #3858e9; }

/* Anmelden */
.auth__submit { margin: 0; }
.auth__submit button {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #f6366a;
  border-radius: 5px;
  background: #f6366a;
  color: #fff;
  font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
  cursor: pointer;
}
.auth__submit button:hover { background: #e32a5d; border-color: #e32a5d; }

/* Links unter dem Formular */
.auth__nav { margin: 24px 0 0; color: #2c3338; font-size: 15px; line-height: 22.5px; }
.auth__nav a { display: inline-block; color: #50575e; text-decoration: underline; }
.auth__nav a:hover { color: #135e96; }

.auth__back { margin: 16px 0 0; padding: 0 24px; text-align: center; font-size: 12px; line-height: 20px; }
.auth__back a { color: #50575e; text-decoration: none; line-height: 18px; }
.auth__back a:hover { color: #135e96; }

.auth__privacy { margin: 26px 0 26px; text-align: center; font-size: 15px; line-height: 21px; }
.auth__privacy a { color: inherit; text-decoration: none; }
.auth__privacy a:hover { text-decoration: underline; }

/* Bei Fehlern kurz schütteln – wie WordPress */
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-20px); }
  40%, 80% { transform: translateX(20px); }
}
.auth--error .auth__form { animation: auth-shake .2s .1s 2 ease-in-out; }
@media (prefers-reduced-motion: reduce) { .auth--error .auth__form { animation: none; } }
