/* Login – gleiche Tokens wie das Portal (app.css) */
:root {
  --bg: #09090b; --panel: #0f0f12; --panel-2: #141418; --hover: #1a1a1f;
  --line: #222227; --line-2: #2c2c33;
  --text: #ededef; --text-2: #a1a1aa; --text-3: #6b6b74;
  --accent: #3b82f6; --accent-h: #2563eb; --ok: #22c55e; --bad: #ef4444;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.shell { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; }
.card-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 600; font-size: 15px; }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
.card { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }

.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 2px solid var(--line-2); font-size: 12px; color: var(--text-3); transition: color .2s, border-color .2s; }
.steps li b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); }
.steps li.on { color: var(--text); border-top-color: var(--accent); }
.steps li.on b { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done { color: var(--text-2); border-top-color: var(--ok); }
.steps li.done b { border-color: var(--ok); color: var(--ok); }

.step { display: none; flex-direction: column; }
.step.active { display: flex; animation: in .2s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.hint { margin: 0 0 24px; color: var(--text-2); font-size: 14px; }
.hint b { color: var(--text); font-weight: 500; }

label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--text-2); }
input { width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.pw { position: relative; display: block; }
.pw input { padding-right: 84px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 8px; background: none; border: 0; border-radius: 6px; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; }
.pw button:hover { color: var(--text); background: var(--hover); }
.remember { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--text-2); cursor: pointer; }
.remember input { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); box-shadow: none; }

.err { min-height: 20px; margin: 0 0 12px; font-size: 13px; color: var(--bad); }
.err.ok-msg { color: var(--ok); }
.primary { display: flex; align-items: center; justify-content: center; height: 40px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 500; cursor: pointer; transition: background .15s; }
.primary:hover { background: var(--accent-h); }
.primary[disabled] { opacity: .6; cursor: wait; }
.primary.loading span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

.mailicon { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); }
.mailicon svg { width: 20px; height: 20px; stroke: var(--text-2); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 8px; }
.otp input { height: 48px; padding: 0; text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row-links { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.link { padding: 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--text-2); text-decoration: none; cursor: pointer; }
.link:hover { color: var(--text); }
.link[disabled] { color: var(--text-3); cursor: default; }
.note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.legal { display: flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 12px; color: var(--text-3); }
.legal svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .card { padding: 24px 20px; } .otp { gap: 6px; } }
