/* auth.css – Layout für Login, Passwort-Reset & Registrierung.
   Farben, Buttons und Formulare kommen aus main.css. */

body.auth-page {
  min-height: 100vh;
  background: var(--hb-bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  min-height: 100vh;
}

/* Linke Markenfläche */
.auth-aside {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  color: var(--hb-sidebar-ink);
  --lm-leaf: var(--hb-primary-light);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(111, 174, 153, 0.3), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(238, 127, 104, 0.28), transparent 60%),
    var(--hb-sidebar);
}

.auth-aside__mark {
  position: absolute;
  right: -90px;
  bottom: -70px;
  z-index: -1;
  width: 420px;
  height: 420px;
  opacity: 0.07;
  --lm-leaf: #fff;
  --lm-heart: #fff;
  --lm-vein: var(--hb-sidebar);
  transform: rotate(-12deg);
}

.auth-brand .logo-mark {
  width: 40px;
  height: 40px;
}

.auth-brand .brand__word {
  font-size: 2rem;
}

.auth-aside__content {
  max-width: 460px;
}

.auth-eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A9CFC2;
}

.auth-claim {
  margin: 0 0 2rem;
  font-family: var(--hb-font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1.04;
  color: #fff;
}

.auth-claim em {
  color: #F7AA98;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-features__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
}

.auth-features strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.auth-features span {
  display: block;
  font-size: 0.85rem;
  color: #A9CFC2;
}

.auth-aside__foot {
  font-size: 0.8rem;
  color: var(--hb-sidebar-muted);
}

/* Rechte Formularfläche */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-panel {
  min-width: 0;
  width: 100%;
  max-width: 420px;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-panel {
    animation: hb-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .auth-aside__content {
    animation: hb-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
  }
}

.auth-title {
  overflow-wrap: anywhere;
  margin: 0 0 0.4rem;
  font-family: var(--hb-font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--hb-ink);
}

.auth-subtitle {
  margin: 0 0 1.75rem;
  color: var(--hb-muted);
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background: var(--hb-primary-50);
  color: var(--hb-primary-600);
  font-size: 1.5rem;
}

.auth-icon--warning {
  background: var(--hb-warning-50);
  color: var(--hb-warning-ink);
}

.auth-form .form-control {
  min-height: 48px;
  font-size: 0.95rem;
}

.auth-form .form-field + .form-field {
  margin-top: 1rem;
}

.auth-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.auth-wizard-actions > .btn {
  flex: 1;
  min-width: 0;
}

.auth-qr-code {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 1.25rem auto;
}

.auth-setup-key {
  overflow-wrap: anywhere;
}

.auth-password {
  position: relative;
}

.auth-password .form-control {
  padding-right: 3rem;
}

.auth-password .btn-icon {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.85rem 0 1.5rem;
  font-size: 0.875rem;
}

.auth-link {
  font-weight: 600;
  color: var(--hb-primary-600);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--hb-primary-700);
  text-decoration: underline;
}

.auth-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hb-border);
  font-size: 0.875rem;
  color: var(--hb-muted);
  text-align: center;
}

.auth-help {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--hb-subtle);
}

.auth-help ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    gap: 1.25rem;
    padding: 1.5rem 1.5rem 1.75rem;
  }

  .auth-aside__mark {
    width: 240px;
    height: 240px;
    right: -50px;
    bottom: -60px;
  }

  .auth-claim {
    margin-bottom: 0;
    font-size: 2rem;
  }

  .auth-features,
  .auth-aside__foot {
    display: none;
  }

  .auth-main {
    align-items: flex-start;
    padding: 2rem 1.25rem 3rem;
  }
}

.auth-page .toast-stack {
  top: 1rem;
}
