/*
 * Blaapp – Design für Login und 2FA-Bestätigung.
 * Referenz: Screenshot "BfbA-Begehung – Bestätigung in zwei Schritten",
 * bereitgestellt am 2026-09-08. Bewusst eigenständiger, moderner Stil,
 * getrennt vom FileMaker-Design (design.css) der übrigen Seiten.
 */

:root {
  --auth-blau: #2f6fa8;
  --auth-blau-dunkel: #1d4e6e;
  --auth-text: #1a2733;
  --auth-text-grau: #5b6b78;
  --auth-rand: #d7dee5;
  --auth-hintergrund: #eef1f4;
}

* { box-sizing: border-box; }

body.auth {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--auth-hintergrund);
  color: var(--auth-text);
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  background: #fff;
  border-bottom: 1px solid var(--auth-rand);
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-topbar-marke {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.auth-topbar-marke img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  object-fit: cover;
}
.auth-topbar-marke svg {
  height: 2.64rem;
  width: auto;
  display: block;
}

.auth-topbar-status {
  color: var(--auth-text-grau);
  font-size: .9rem;
}

.auth-buehne {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-karte {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 40, 60, .12);
  overflow: hidden;
  max-width: 39.1rem;
  width: 100%;
}

.auth-karte-akzent {
  height: 4px;
  background: linear-gradient(90deg, var(--auth-blau), var(--auth-blau-dunkel));
}

.auth-karte-inhalt {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
}

.auth-icon {
  flex-shrink: 0;
  width: 7.5rem;
  height: auto;
  border-radius: 8px;
}

.auth-formular {
  flex: 1;
  min-width: 0;
}

.auth-kicker {
  color: var(--auth-blau);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .4rem;
}

.auth-titel {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 .6rem;
  color: var(--auth-text);
}

.auth-untertitel {
  color: var(--auth-text-grau);
  margin: 0 0 1.25rem;
  font-size: .95rem;
  line-height: 1.5;
}

.auth-label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
}

.auth-input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--auth-rand);
  border-radius: 8px;
  font-size: 1.05rem;
  outline: none;
}
.auth-input:focus {
  border-color: var(--auth-blau);
  box-shadow: 0 0 0 3px rgba(47, 111, 168, .18);
}

.auth-hilfe {
  color: var(--auth-text-grau);
  font-size: .85rem;
  margin: .4rem 0 0;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.1rem 0;
  font-weight: 700;
  font-size: .95rem;
}
.auth-checkbox input { width: 1.1rem; height: 1.1rem; }

.auth-aktionen {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.auth-btn-primary {
  background: var(--auth-blau);
  color: #fff;
}
.auth-btn-primary:hover { background: var(--auth-blau-dunkel); }

.auth-btn-sekundaer {
  background: #fff;
  color: var(--auth-text);
  border-color: var(--auth-rand);
}
.auth-btn-sekundaer:hover { background: #f4f6f8; }

.auth-hinweis {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  background: #f4f7fa;
  border-radius: 8px;
  color: var(--auth-text-grau);
  font-size: .88rem;
}
.auth-hinweis i { color: var(--auth-blau); margin-top: .15rem; }

.auth-fehler {
  background: #fdeceb;
  color: #8a2c22;
  border: 1px solid #f2b7b0;
  border-radius: 8px;
  padding: .6rem .85rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.auth-meldung {
  background: #e1f3e6;
  color: #1c6b34;
  border: 1px solid #b9dfc4;
  border-radius: 8px;
  padding: .6rem .85rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.auth-notfallcodes {
  font-family: ui-monospace, monospace;
  background: #f4f7fa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .5rem;
  margin: 1rem 0;
  font-size: 1.05rem;
}

.auth-fusszeile {
  text-align: center;
  color: var(--auth-text-grau);
  font-size: .8rem;
  padding: 1.25rem;
  background: #fff;
  border-top: 1px solid var(--auth-rand);
}

@media (max-width: 40rem) {
  .auth-karte-inhalt { flex-direction: column; align-items: center; text-align: center; }
  .auth-aktionen { justify-content: center; }
}
