/*
 * 1a-Studi Auth UI – eigenständiges Auth-Template
 * Namespace: #a1auth-root .a1auth-*
 * Version: 1.0.0 (HTML-Demo, keine produktive Authentifizierung)
 * Bootstrap 5 kann vor diesem Stylesheet geladen werden.
 * Ohne Bootstrap bleibt das Hauptlayout durch eigene Klassen darstellbar.
 */

body.a1auth-page {
  margin: 0;
}

#a1auth-root.a1auth-root {
  --a1auth-brand-green: #1abc9c;
  --a1auth-action-green: #18b094;
  --a1auth-action-hover: #11977f;
  --a1auth-heading: #053c71;
  --a1auth-copy: #18181a;
  --a1auth-muted: #727586;
  --a1auth-stroke: #e5e5e5;
  --a1auth-focus: #053c71;
  --a1auth-surface: #ffffff;
  --a1auth-font-heading: "Montserrat", "Roboto", Arial, sans-serif;
  --a1auth-font-copy: "Roboto", Arial, sans-serif;
  --a1auth-card-width: 384px;
  --a1auth-card-radius: 14px;

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  background: var(--a1auth-brand-green);
  color: var(--a1auth-copy);
  font-family: var(--a1auth-font-copy);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

#a1auth-root *,
#a1auth-root *::before,
#a1auth-root *::after {
  box-sizing: border-box;
}

#a1auth-root .a1auth-brand {
  position: absolute;
  z-index: 10;
  top: 28px;
  left: 32px;
}

#a1auth-root .a1auth-brand__link {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
}

#a1auth-root .a1auth-brand__image {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}

#a1auth-root .a1auth-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 20px 0;
}

#a1auth-root .a1auth-card {
  width: 100%;
  max-width: var(--a1auth-card-width);
  padding: 26px 27px 27px;
  border: 0;
  border-radius: var(--a1auth-card-radius);
  background: var(--a1auth-surface);
  box-shadow: none;
}

#a1auth-root .a1auth-card__heading {
  margin: 0;
  color: var(--a1auth-heading);
  font-family: var(--a1auth-font-heading);
  font-size: 29px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.55px;
  text-align: center;
}

#a1auth-root .a1auth-card__subline {
  margin: 4px 0 0;
  color: var(--a1auth-copy);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

#a1auth-root .a1auth-link {
  color: var(--a1auth-action-green);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

#a1auth-root .a1auth-link:hover {
  color: var(--a1auth-action-hover);
  text-decoration: underline;
}

#a1auth-root .a1auth-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

#a1auth-root .a1auth-social__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--a1auth-stroke);
  border-radius: 7px;
  background: #fff;
  color: var(--a1auth-copy);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

#a1auth-root .a1auth-social__button:hover {
  border-color: #aeb7bf;
  background: #f9fbfc;
}

#a1auth-root .a1auth-social__icon {
  display: block;
  width: 18px;
  height: 18px;
}

#a1auth-root .a1auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 20px;
  margin: 20px 0 27px;
  color: var(--a1auth-copy);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

#a1auth-root .a1auth-divider::before,
#a1auth-root .a1auth-divider::after {
  display: block;
  flex: 1 1 0;
  height: 1px;
  background: #e8e8e8;
  content: "";
}

#a1auth-root .a1auth-form {
  margin: 0;
}

#a1auth-root .a1auth-field {
  margin: 0;
}

#a1auth-root .a1auth-field + .a1auth-field {
  margin-top: 22px;
}

#a1auth-root .a1auth-field__label {
  display: block;
  margin: 0 0 8px;
  color: var(--a1auth-copy);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  text-align: left;
}

#a1auth-root .a1auth-field__control {
  display: block;
  width: 100%;
  height: 35px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--a1auth-stroke);
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--a1auth-copy);
  font-family: var(--a1auth-font-copy);
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#a1auth-root .a1auth-field__control:hover {
  border-color: #cad3d9;
}

#a1auth-root .a1auth-field__control:focus {
  border-color: var(--a1auth-action-green);
  box-shadow: 0 0 0 3px rgb(26 188 156 / 14%);
}

#a1auth-root .a1auth-field__control[aria-invalid="true"] {
  border-color: #b42318;
}

#a1auth-root .a1auth-field__password {
  position: relative;
}

#a1auth-root .a1auth-field__password > .a1auth-field__control {
  padding-right: 43px;
}

#a1auth-root .a1auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--a1auth-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

#a1auth-root .a1auth-password-toggle:hover {
  color: var(--a1auth-heading);
}

#a1auth-root .a1auth-password-toggle__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#a1auth-root .a1auth-password-toggle__icon[hidden] {
  display: none;
}

#a1auth-root .a1auth-forgot {
  display: inline-block;
  margin-top: 7px;
  color: var(--a1auth-copy);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

#a1auth-root .a1auth-forgot:hover {
  color: var(--a1auth-action-hover);
  text-decoration: underline;
}

#a1auth-root .a1auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 21px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--a1auth-action-green);
  color: #fff;
  font-family: var(--a1auth-font-copy);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

#a1auth-root .a1auth-primary:hover {
  background: var(--a1auth-action-hover);
}

#a1auth-root .a1auth-brand__link:focus-visible,
#a1auth-root .a1auth-social__button:focus-visible,
#a1auth-root .a1auth-password-toggle:focus-visible,
#a1auth-root .a1auth-primary:focus-visible,
#a1auth-root .a1auth-link:focus-visible,
#a1auth-root .a1auth-forgot:focus-visible,
#a1auth-root .a1auth-checkbox__input:focus-visible {
  outline: 3px solid var(--a1auth-focus);
  outline-offset: 3px;
}

#a1auth-root .a1auth-status {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #d2e4e1;
  border-radius: 7px;
  background: #effaf7;
  color: #174b43;
  font-size: 12px;
  line-height: 1.5;
}

#a1auth-root .a1auth-status[hidden] {
  display: none !important;
}

/* Zusatzansicht: Registrierung – ohne Einfluss auf die Logingeometrie. */
#a1auth-root .a1auth-card--registration,
#a1auth-root .a1auth-card--reset {
  margin-top: 42px;
  margin-bottom: 42px;
}

#a1auth-root .a1auth-card--registration .a1auth-form .a1auth-field + .a1auth-field {
  margin-top: 15px;
}

#a1auth-root .a1auth-bonus {
  margin-top: 23px;
  padding: 14px 13px 13px;
  border: 1px solid #cdebe4;
  border-radius: 8px;
  background: #f4fcf9;
}

#a1auth-root .a1auth-bonus__headingrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

#a1auth-root .a1auth-bonus__badge {
  position: relative;
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid var(--a1auth-brand-green);
  border-radius: 50%;
  background: #fff;
  color: var(--a1auth-brand-green);
  font-family: var(--a1auth-font-heading);
  font-size: 14px;
  font-weight: 700;
}

#a1auth-root .a1auth-bonus__badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

#a1auth-root .a1auth-bonus__title {
  margin: 0;
  color: var(--a1auth-heading);
  font-family: var(--a1auth-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

#a1auth-root .a1auth-bonus__copy {
  margin: 9px 0 11px;
  color: #354e51;
  font-size: 12px;
  line-height: 1.5;
}

#a1auth-root .a1auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

#a1auth-root .a1auth-checkbox__input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  border: 1px solid #9bb5b0;
  accent-color: var(--a1auth-action-green);
  cursor: pointer;
}

#a1auth-root .a1auth-checkbox__text {
  color: var(--a1auth-copy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

#a1auth-root .a1auth-legal {
  margin: 15px 0 0;
  color: #526068;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

#a1auth-root .a1auth-legal .a1auth-link {
  font-weight: 600;
  text-decoration: underline;
}

#a1auth-root .a1auth-reset__title {
  margin: 20px 0 9px;
  color: var(--a1auth-heading);
  font-family: var(--a1auth-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

#a1auth-root .a1auth-reset__copy {
  margin: 0 0 26px;
  color: #354e51;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

#a1auth-root .a1auth-back {
  display: block;
  margin-top: 19px;
  font-size: 12px;
  text-align: center;
}

/* Auf sehr schmalen oder niedrigen Bildschirmen bleibt die Karte vollständig erreichbar. */
@media (max-width: 520px) {
  #a1auth-root .a1auth-brand {
    top: 20px;
    left: 20px;
  }

  #a1auth-root .a1auth-brand__image {
    width: 180px;
  }

  #a1auth-root .a1auth-stage {
    padding: 108px 16px 30px;
  }

  #a1auth-root .a1auth-card {
    padding-right: 22px;
    padding-left: 22px;
  }

  #a1auth-root .a1auth-card__heading {
    font-size: 26px;
    line-height: 31px;
  }

  #a1auth-root .a1auth-social__button,
  #a1auth-root .a1auth-field__control {
    height: 44px;
    font-size: 16px;
  }

  #a1auth-root .a1auth-primary {
    min-height: 44px;
  }

  #a1auth-root .a1auth-card--registration,
  #a1auth-root .a1auth-card--reset {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-height: 650px) and (min-width: 521px) {
  #a1auth-root .a1auth-stage {
    padding-top: 128px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #a1auth-root .a1auth-social__button,
  #a1auth-root .a1auth-field__control,
  #a1auth-root .a1auth-primary {
    transition: none;
  }
}

/* Registrierungsansicht V1.1: Rechtshinweis ausschließlich außerhalb der Karte. */
#a1auth-root .a1auth-registration-layout {
  width: 100%;
  max-width: var(--a1auth-card-width);
  margin: 42px 0;
}

#a1auth-root .a1auth-registration-layout > .a1auth-card--registration {
  margin: 0;
}

#a1auth-root .a1auth-legal--outside {
  margin: 19px auto 0;
  padding: 0 12px;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

#a1auth-root .a1auth-legal--outside .a1auth-link,
#a1auth-root .a1auth-legal--outside .a1auth-link:visited,
#a1auth-root .a1auth-legal--outside .a1auth-link:hover,
#a1auth-root .a1auth-legal--outside .a1auth-link:focus {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#a1auth-root .a1auth-legal--outside .a1auth-link:focus-visible {
  outline-color: #ffffff;
}

@media (max-width: 520px) {
  #a1auth-root .a1auth-registration-layout {
    margin: 0;
  }
}

/* Login errors only: balanced padding without browser list/paragraph margins. */
#a1auth-root .a1auth-status--login-error { padding: 12px 16px; }
#a1auth-root .a1auth-status--login-error p { margin: 0; }
