/* ============================================================
   Anmeldeseite des Tores — nur das Gerüst.
   Design-Tokens und Grundformen kommen aus `/style.css`, hier steht
   ausschließlich, was diese eine Seite braucht. Keine zweite Quelle für
   Farben oder Abstände.
   ============================================================ */

.tor-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  /* Kein `min-height`-Trick: `html, body { height: 100% }` steht schon in
     `style.css`, `align-items: center` richtet die Karte darin mittig aus. */
}

.tor-karte {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

/* ---------- Marke ----------
   Eigene Klasse statt `.brand-logo` aus dem Haus: die Regel dafür steht in
   einem Abschnitt von `style.css`, den dieses Tor bewusst nicht mitnimmt
   (App-Gerüst). Eine Klasse zu benutzen, deren Definition fehlt, wäre ein
   unsichtbarer Fehler — die Marke sähe nur zufällig richtig aus. */
.tor-marke {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.tor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.tor-marke-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Text ---------- */
.tor-titel {
  margin: 0 0 var(--space-2);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tor-hinweis {
  margin: 0 0 var(--space-6);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.tor-hinweis strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.tor-hinweis-ruhig {
  margin: 0;
  text-align: center;
  padding: var(--space-6) 0;
}

#tor-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tor-knopf {
  width: 100%;
  margin-top: var(--space-2);
}

/* Fehlerbereich: dieselbe Form wie in Creator OS — getönter Grund, kräftige
   Kante, dunklere Schrift. „Fehler" ist im Tokensatz bewusst dunkler als der
   Markenknopf, sonst verliert die Warnung ihre Wirkung. */
.tor-fehler {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid transparent;
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
}

/* Ein laufender Anmeldeversuch geht an eine fremde Gegenstelle. Der Knopf zeigt
   das an, damit niemand zweimal klickt und sich die Ratenbremse selbst auslöst. */
.tor-knopf[data-laeuft="1"] {
  opacity: 0.7;
}

/* ---------- Die drei Ziele ---------- */
.tor-ziele {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tor-ziel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tor-ziel:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.tor-ziel-name {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Die Adresse steht klein daneben, `tabular-nums` unnötig — aber der Host soll
   nicht umbrechen und die Zeile sprengen. */
.tor-ziel-host {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.tor-fuss {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
