/* DigitalFineGold · Anmeldung und zweiter Faktor
   Eigenstaendige Stildatei im Design der Website. Alle Regeln sind auf
   .dfg-auth begrenzt und bringen ihre Variablen selbst mit, es besteht
   keine Abhaengigkeit vom uebrigen Stylesheet. */

.dfg-auth {
  --ground: #17150f;
  --card: #211e16;
  --sunken: #14120c;
  --hair: rgba(236, 230, 216, 0.10);
  --hair-strong: rgba(236, 230, 216, 0.20);
  --ink: #ece6d8;
  --muted: #9e9784;
  --faint: #6f6a59;
  --gold: #c2a14e;
  --gold-deep: #a98a3c;
  --gold-wash: rgba(194, 161, 78, 0.10);
  --down: #c0897c;
  --up: #86a081;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --r-control: 8px;
  --r-surface: 12px;
  --dur: 0.25s;

  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.dfg-auth *, .dfg-auth *::before, .dfg-auth *::after { box-sizing: border-box; }

/* ── Buehne, mittig zentrierte Karte ─────────────────────── */
/* Die Seite sitzt im normalen Layout zwischen Navigation und Fusszeile,
   deshalb keine volle Bildschirmhoehe. */
.dfg-auth .auth-stage {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 110px 20px 48px;  /* top: 110px (nav clearance), sides: 20px, bottom: 48px */
  background:
    radial-gradient(620px 480px at 50% 18%, rgba(194, 161, 78, 0.10), transparent 62%),
    var(--ground);
}

.dfg-auth .auth-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px; text-decoration: none;
}
.dfg-auth .auth-brand img { width: 34px; height: 34px; display: block; }
.dfg-auth .auth-wordmark {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: 0.3px; white-space: nowrap; color: var(--ink);
}
.dfg-auth .auth-wordmark b { font-weight: 600; color: var(--gold); }

.dfg-auth .auth-card {
  width: 100%; max-width: 460px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-surface);
  padding: 40px 36px 36px;
}
.dfg-auth h1 {
  margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink);
}
.dfg-auth .auth-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 10px 0 28px; }

/* ── Felder ──────────────────────────────────────────────── */
.dfg-auth .auth-field { margin-bottom: 16px; }
.dfg-auth .auth-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 7px; letter-spacing: 0.2px;
}
.dfg-auth .auth-field input {
  width: 100%;
  background: var(--sunken); border: 1px solid var(--hair-strong); border-radius: var(--r-control);
  color: var(--ink); font-size: 15px; font-family: var(--sans);
  padding: 13px 14px; outline: none;
  transition: border-color var(--dur);
}
.dfg-auth .auth-field input:focus { border-color: var(--gold); }
.dfg-auth .auth-field input::placeholder { color: var(--faint); }
.dfg-auth .auth-field input.err { border-color: var(--down); }

.dfg-auth .auth-error { display: none; font-size: 13px; color: var(--down); margin: 6px 0 0; }
.dfg-auth .auth-error.show { display: block; }
.dfg-auth .auth-status {
  font-size: 13.5px; line-height: 1.5; color: var(--up);
  background: rgba(134, 160, 129, 0.10); border: 1px solid rgba(134, 160, 129, 0.35);
  border-radius: var(--r-control); padding: 11px 13px; margin: 0 0 18px;
}
.dfg-auth .auth-forgot { margin: -6px 0 18px; font-size: 13px; text-align: right; }
.dfg-auth .auth-forgot a { color: var(--muted); text-decoration: none; }
.dfg-auth .auth-forgot a:hover { color: var(--gold); }

/* ── Knopf ───────────────────────────────────────────────── */
.dfg-auth .auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; border: 1px solid transparent; border-radius: var(--r-control);
  padding: 14px 22px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  background: var(--gold); color: #1c160a;
  transition: background var(--dur);
}
.dfg-auth .auth-btn:hover { background: var(--gold-deep); }

/* ── Verweise ────────────────────────────────────────────── */
.dfg-auth .auth-alt { text-align: center; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.dfg-auth .auth-alt a { color: var(--gold); font-weight: 600; text-decoration: none; }
.dfg-auth .auth-alt a:hover { text-decoration: underline; }
.dfg-auth .auth-back { margin-top: 30px; font-size: 13px; color: var(--faint); text-decoration: none; }
.dfg-auth .auth-back:hover { color: var(--muted); }

/* ── Sechsstelliger Code ─────────────────────────────────── */
.dfg-auth .auth-code-row { display: flex; gap: 8px; margin-bottom: 18px; }
.dfg-auth .auth-code-row input {
  flex: 1; min-width: 0; height: 54px; text-align: center;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  background: var(--sunken); border: 1px solid var(--hair-strong); border-radius: var(--r-control);
  color: var(--ink); outline: none; transition: border-color var(--dur);
}
.dfg-auth .auth-code-row input:focus { border-color: var(--gold); }
.dfg-auth .auth-code-row input.filled { background: var(--card); }
.dfg-auth .auth-resend {
  display: block; width: 100%; margin-top: 14px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.dfg-auth .auth-resend:hover:not(:disabled) { color: var(--ink); }
.dfg-auth .auth-resend:disabled { color: var(--faint); cursor: default; }

@media (max-width: 480px) {
  .dfg-auth .auth-card { padding: 32px 24px 28px; }
}

/* ── Meldungen ueber der Karte ───────────────────────────── */
.dfg-auth .auth-flash { width: 100%; max-width: 460px; }
.dfg-auth .auth-flash .auth-status { margin-bottom: 14px; }
.dfg-auth .auth-status--err {
  color: var(--down);
  background: rgba(192, 137, 124, 0.10);
  border-color: rgba(192, 137, 124, 0.35);
}

/* ── Zeile mit Angemeldet bleiben und Passwort vergessen ─── */
.dfg-auth .auth-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 2px 0 20px; font-size: 13px;
}
.dfg-auth .auth-remember {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); cursor: pointer; user-select: none;
}
.dfg-auth .auth-remember input {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--gold); cursor: pointer;
}
.dfg-auth .auth-meta a { color: var(--muted); text-decoration: none; }
.dfg-auth .auth-meta a:hover { color: var(--gold); }

/* ── Passwort-Auge ───────────────────────────────────────── */
.dfg-auth .auth-input-wrap { position: relative; }
.dfg-auth .auth-input-wrap input { padding-right: 46px; }
.dfg-auth .auth-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--faint); font-size: 14px;
  transition: color var(--dur);
}
.dfg-auth .auth-eye:hover { color: var(--ink); }

/* ── Wartetext waehrend der Anmeldung ────────────────────── */
.dfg-auth .auth-wait {
  margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center;
}

/* ── Passwort-vergessen-Fenster ──────────────────────────── */
.dfg-auth .auth-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 9, 6, 0.6);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  padding: 20px;
}
.dfg-auth .auth-modal {
  width: 400px; max-width: 100%;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-surface);
  padding: 26px 24px 24px;
}
.dfg-auth .auth-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dfg-auth .auth-modal-head h2 {
  margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink);
}
.dfg-auth .auth-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 24px; line-height: 1; padding: 2px 6px;
}
.dfg-auth .auth-modal-close:hover { color: var(--ink); }
