/* auth.css — Login/Kontakt/Setup im Liquid-Glass-Stil */
@font-face {
  font-family: "AppSans";
  src: url("fonts/inter-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "AppSans";
  src: url("fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --navy: #232f3e;
  --blue: #0877ad;
  --blue-d: #005c8f;
  --orange: #ec7211;
  --danger: #d13212;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: "AppSans","Segoe UI",Tahoma,Arial,sans-serif; }

.auth-bg {
  min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 20% -10%, #33475e 0%, transparent 60%),
              radial-gradient(1000px 500px at 100% 120%, #0a4c6e 0%, transparent 55%),
              linear-gradient(160deg, #1b2733 0%, #232f3e 100%);
}

/* Liquid Glass */
.glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 20px;
}
/* Fallback, falls backdrop-filter nicht unterstützt wird */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(29, 40, 53, 0.92); }
}

.auth-card {
  width: min(420px, 94vw);
  padding: 30px 28px 22px;
  color: #f1f5f9;
  text-align: left;
}
.auth-logo {
  display: block; height: 76px; width: auto; margin: 0 auto 18px;
  background: #fff; border-radius: 12px; padding: 8px 14px;
}
.auth-form h1 { font-size: 20px; margin: 0 0 16px; font-weight: 600; color: #fff; }
.auth-hint { font-size: 13px; color: #cbd5e1; margin: -8px 0 16px; }

.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; margin-bottom: 5px; color: #dbe4ee; }
.auth-field input {
  width: 100%; padding: 11px 12px; font-size: 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10); color: #fff;
}
.auth-field input:focus {
  outline: 2px solid rgba(236,114,17,.5); border-color: var(--orange);
  background: rgba(255,255,255,.16);
}
.auth-field input::placeholder { color: #9fb0c0; }

.auth-btn {
  width: 100%; padding: 12px; margin-top: 6px;
  background: var(--orange); color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(236,114,17,.4);
  transition: background .15s, transform .05s;
}
.auth-btn:hover { background: #d85f0a; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-error {
  background: rgba(209,50,18,.2); border: 1px solid rgba(209,50,18,.5);
  color: #ffd7cd; border-radius: 8px; padding: 9px 11px; font-size: 13px; margin: 4px 0 12px;
}
.auth-ok {
  background: rgba(63,134,36,.2); border: 1px solid rgba(63,134,36,.5);
  color: #d6f5c8; border-radius: 8px; padding: 9px 11px; font-size: 13px; margin: 4px 0 12px;
}

.auth-foot { margin-top: 18px; font-size: 13px; color: #cbd5e1; text-align: center; line-height: 1.7; }
.auth-foot a, .auth-legal a { color: #7fc4ec; text-decoration: none; }
.auth-foot a:hover, .auth-legal a:hover { text-decoration: underline; }
.auth-legal { margin-top: 10px; font-size: 11.5px; color: #94a3b8; text-align: center; }

.hidden { display: none !important; }

/* Kontakt-/Setup-Formular nutzt dieselben Bausteine, ggf. breiter */
.auth-card.wide { width: min(520px, 94vw); }
textarea.auth-input {
  width: 100%; padding: 11px 12px; font-size: 14px; min-height: 96px; resize: vertical;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10); color: #fff; font-family: inherit;
}
select.auth-input {
  width: 100%; padding: 11px 12px; font-size: 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10); color: #fff;
}
select.auth-input option { color: #16191f; }

/* MFA-Einrichtung */
.mfa-qr {
  display: flex; justify-content: center; margin: 10px 0 14px;
}
.mfa-qr canvas {
  background: #fff; border-radius: 12px; padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.mfa-secret { text-align: center; margin: 10px 0 14px; }
.mfa-secret code {
  display: inline-block; font-family: Consolas, monospace; font-size: 18px; letter-spacing: 2px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 8px 14px; border-radius: 10px; color: #fff; word-break: break-all;
}
.mfa-uri-hint { text-align: center; }
.mfa-uri-hint a { color: #7fc4ec; }

/* Honeypot – für Menschen unsichtbar, für Bots sichtbar */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Profilseite */
.prof-h {
  font-size: 15px; color: #fff; margin: 22px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 6px;
}
.prof-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dbe4ee; margin: 8px 0; }
.prof-check input { width: auto; }
.prof-note { font-size: 12px; margin-top: 8px; }
.prof-danger-h { color: #ffb4a3; border-bottom-color: rgba(209,50,18,.4); }
.prof-danger-btn { background: #b23a1a; box-shadow: 0 4px 14px rgba(178,58,26,.4); }
.prof-danger-btn:hover { background: #c9451f; }
