/**
 * Saarland Today – Anmelden / Registrieren / Passwort (ST-Chrome + Karten-Formular).
 */

.st-layout-page--user-auth #st_hero {
  margin-top: 0;
  min-height: 0;
  height: auto;
}

.st-page--user-auth #st_body {
  flex: 0 0 1180px;
  width: 1180px;
  max-width: 1180px;
  margin: 0;
  padding: var(--st-body-padding-fluid) 0 48px;
  background: var(--st-bg-page);
  color: var(--st-text);
}

.st-page--user-auth #st_body_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
}

.st-page--user-auth #sidebar-box-main,
.st-page--user-auth .sidebar-box-main-inner {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  float: none;
}

.st-page--user-auth #main-container-inner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.st-user-auth {
  width: 100%;
  max-width: 560px;
  margin: var(--st-space-20) auto 0;
}

.st-user-auth__card {
  background: var(--st-bg-card, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--st-border) 65%, transparent);
  border-radius: 12px;
  box-shadow: 0 12px 40px color-mix(in srgb, #000 8%, transparent);
  padding: clamp(1.25rem, 2vw, 2rem);
}

.st-user-auth__intro {
  margin: 0 0 var(--st-space-20);
  color: var(--st-text-muted, var(--muted-text));
  font-size: 1rem;
  line-height: 1.5;
}

.st-user-auth__form .form-item {
  margin-bottom: var(--st-space-15);
}

.st-user-auth__form label,
.st-user-auth__form .form-item__label {
  display: block;
  margin-bottom: var(--st-space-5);
  font-weight: 600;
  color: var(--st-text);
}

.st-user-auth__form input[type="text"],
.st-user-auth__form input[type="email"],
.st-user-auth__form input[type="password"],
.st-user-auth__form input[type="text"].st-user-auth__password-input,
.st-user-auth__form input.form-text,
.st-user-auth__form input.form-email {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  background: var(--st-bg-page);
  color: var(--st-text);
}

.st-user-auth__password-field {
  position: relative;
  width: 100%;
}

.st-user-auth__password-field .st-user-auth__password-input {
  padding-right: 2.85rem;
}

.st-user-auth__password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--st-text-muted, var(--muted-text));
  transform: translateY(-50%);
  cursor: pointer;
}

.st-user-auth__password-toggle:hover {
  color: var(--st-accent);
  background: color-mix(in srgb, var(--st-accent) 8%, transparent);
}

.st-user-auth__password-toggle:focus {
  outline: 2px solid color-mix(in srgb, var(--st-accent) 45%, transparent);
  outline-offset: 1px;
}

.st-user-auth__password-toggle .st-user-auth__eye {
  width: 1.25rem;
  height: 1.25rem;
}

.st-user-auth__password-toggle .st-user-auth__eye--closed {
  display: none;
}

.st-user-auth__password-field.is-visible .st-user-auth__eye--open {
  display: none;
}

.st-user-auth__password-field.is-visible .st-user-auth__eye--closed {
  display: block;
}

.st-user-auth__form input:focus {
  outline: 2px solid color-mix(in srgb, var(--st-accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--st-accent);
}

.st-user-auth__form .description,
.st-user-auth__form .form-item__description {
  margin-top: var(--st-space-5);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--st-text-muted, var(--muted-text));
}

.st-user-auth__form .form-actions {
  margin-top: var(--st-space-20);
  text-align: center;
}

.st-user-auth__form .form-actions .button,
.st-user-auth__form .form-actions .solo-button,
.st-user-auth__form .form-actions input[type="submit"] {
  min-width: 12rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--st-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.st-user-auth__form .form-actions .button:hover,
.st-user-auth__form .form-actions .solo-button:hover,
.st-user-auth__form .form-actions input[type="submit"]:hover {
  filter: brightness(1.05);
}

.st-user-auth__switch {
  margin: var(--st-space-20) 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--st-text-muted, var(--muted-text));
}

.st-user-auth__switch a {
  color: var(--st-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.st-user-auth__switch a:hover {
  color: var(--st-link-hover, var(--st-accent));
}

.st-page--user-auth nav.tabs {
  width: 100%;
  max-width: 560px;
  margin: var(--st-space-20) auto 0;
}

.st-page--user-auth nav.tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
}

.st-page--user-auth nav.tabs ul.tabs li {
  flex: 1 1 auto;
  margin: 0;
}

.st-page--user-auth nav.tabs ul.tabs a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--st-text);
  background: color-mix(in srgb, var(--st-bg-card) 80%, var(--st-border));
  text-decoration: none;
}

.st-page--user-auth nav.tabs ul.tabs a.is-active,
.st-page--user-auth nav.tabs ul.tabs a:hover {
  background: var(--st-accent);
  color: #fff;
}

.st-page--user-auth .messages {
  max-width: 560px;
  margin-inline: auto;
}

/* Standard-Meldungen ausblenden, wenn das Formular-Meldungsfeld aktiv ist */
.st-page--user-auth:has(.st-user-auth--has-errors) .messages {
  display: none !important;
}

/* Hinweis-Banner (Registrierung) */
.st-user-auth-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  width: 100%;
  max-width: 560px;
  margin: 0 auto var(--st-space-20);
  padding: 1rem 1.1rem;
  overflow: hidden;
  color: #fff;
  background: #000;
  border: 1px solid color-mix(in srgb, #f5c518 35%, #000);
  border-radius: 4px;
  box-shadow: 0 0 24px color-mix(in srgb, #f5c518 12%, transparent);
}

.st-user-auth-notice__glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 45%;
  height: 140%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgb(245 197 24 / 0.28) 0%, rgb(245 197 24 / 0) 72%);
}

.st-user-auth-notice__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  font-size: 2rem;
  line-height: 1;
  color: #f5c518;
  filter: drop-shadow(0 0 8px rgb(245 197 24 / 0.45));
}

.st-user-auth-notice__icon-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #000;
}

.st-user-auth-notice__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.st-user-auth-notice__message {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.st-user-auth-notice__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.st-user-auth-notice__suggestion {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, #f5c518 55%, #fff);
  border-radius: 999px;
  background: rgb(245 197 24 / 0.12);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.st-user-auth-notice__suggestion:hover,
.st-user-auth-notice__suggestion:focus-visible {
  background: rgb(245 197 24 / 0.24);
  outline: none;
}

.st-user-auth-notice__close {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.st-user-auth-notice__close-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed color-mix(in srgb, #f5c518 70%, #fff);
  border-radius: 50%;
  pointer-events: none;
}

.st-user-auth-notice__close i {
  font-size: 0.85rem;
}

.st-user-auth-notice--error {
  border-color: color-mix(in srgb, #e53e3e 55%, #000);
  box-shadow: 0 0 24px color-mix(in srgb, #e53e3e 14%, transparent);
}

.st-user-auth-notice__glow--error {
  background: radial-gradient(circle at center, rgb(229 62 62 / 0.24) 0%, rgb(229 62 62 / 0) 72%);
}

.st-user-auth-notice__icon--error {
  font-size: 1.85rem;
  color: #e53e3e;
  filter: drop-shadow(0 0 8px rgb(229 62 62 / 0.45));
}

.st-user-auth-notice__headline {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}

.st-user-auth-notice__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-user-auth-notice__list-item + .st-user-auth-notice__list-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
}

.st-user-auth-notice__close-ring--error {
  border-color: color-mix(in srgb, #e53e3e 70%, #fff);
}

.st-user-auth-notice__close--error {
  color: #fff;
}

.st-user-auth--has-errors .form-item--error-message,
.st-user-auth--has-errors .form-item--error .form-item__error-message {
  display: none !important;
}

.st-user-auth--has-errors .form-item--error input.error,
.st-user-auth--has-errors .form-item--error input:invalid {
  border-color: color-mix(in srgb, #e53e3e 65%, var(--st-border));
}

@media (max-width: 1199px) {
  .st-page--user-auth #st_body {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }
}
