/* Anmeldung · gleiche Gestaltungssprache wie die Oberfläche, hell und dunkel nach Systemeinstellung. */
:root {
  --bg: #f5f5f9; --surface: #fff; --surface-2: #f7f7fa; --border: #e6e6ee; --border-strong: #d3d3de;
  --text: #14141d; --text-2: #4a4a5b; --muted: #6c6c7e; --faint: #a3a3b3;
  --primary: #6250e8; --primary-hover: #5341d8; --primary-text: #4b39c9; --primary-ring: rgba(98, 80, 232, .22); --amber: #e39424;
  --danger: #c5343e; --danger-soft: #fdecec;
  --shadow: 0 2px 6px rgba(20, 20, 50, .05), 0 30px 80px -30px rgba(20, 20, 50, .3);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b10; --surface: #15151c; --surface-2: #1a1a22; --border: #26262f; --border-strong: #3a3a47;
    --text: #f1f1f6; --text-2: #b6b6c4; --muted: #8d8d9e; --faint: #5f5f6e;
    --primary: #6a5bf0; --primary-hover: #7a6cf4; --primary-text: #b7adfc; --primary-ring: rgba(138, 124, 247, .32); --amber: #efb35c;
    --danger: #f27d84; --danger-soft: #331b1e;
    --shadow: 0 2px 8px rgba(0, 0, 0, .4), 0 30px 80px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-optical-sizing: auto; font-size: 14.5px; line-height: 1.55;
  color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at 100% 110%, color-mix(in srgb, var(--amber) 11%, transparent), transparent 70%),
    var(--bg);
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--primary) 18%, transparent) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); opacity: .6; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(100%, 960px); min-height: 580px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.art { position: relative; background: #f5f4fa; overflow: hidden; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-caption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 30px -14px rgba(40, 30, 120, .35); }
.art-kicker { margin: 0 0 5px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #5a48d8; }
.art-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; color: #16152b; }
.form-side { display: flex; flex-direction: column; padding: 36px 48px 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.brand b { font-weight: 720; color: var(--primary-text); margin-left: 1px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--primary) 60%, transparent); }
.form-body { margin: auto 0; padding: 32px 0; }
h1 { margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -.026em; line-height: 1.15; }
.intro { margin: 0 0 30px; color: var(--text-2); max-width: 38ch; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.token-field { display: flex; align-items: stretch; height: 46px; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 1px rgba(20, 20, 50, .04); transition: border-color .15s, box-shadow .15s; }
.token-field:hover { border-color: color-mix(in srgb, var(--text) 26%, var(--border)); }
.token-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.token-field .key { align-self: center; margin-left: 13px; color: var(--muted); width: 17px; height: 17px; }
.token-field input { flex: 1; min-width: 0; padding: 0 12px 0 10px; border: 0; background: transparent; font: inherit; font-size: 15px; color: inherit; letter-spacing: .02em; }
.token-field input::placeholder { color: var(--faint); letter-spacing: 0; }
.token-field input:focus { outline: none; }
.token-field button { display: grid; place-items: center; width: 46px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s; }
.token-field button:hover { color: var(--text); background: var(--surface-2); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.token-field button[aria-pressed="false"] .eye-off, .token-field button[aria-pressed="true"] .eye { display: none; }
#error { min-height: 22px; margin: 10px 0 14px; font-size: 13px; font-weight: 500; color: var(--danger); }
#error:not(:empty) { padding: 8px 12px; border-radius: 9px; background: var(--danger-soft); }
.submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px color-mix(in srgb, var(--primary) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .16); transition: background-color .15s, transform .1s; }
.submit .icon { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.submit:hover { background: var(--primary-hover); }
.submit:hover .icon { transform: translateX(3px); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .6; cursor: wait; }
.foot { margin: 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.foot code { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: .9em; padding: .1em .35em; border-radius: 5px; background: var(--surface-2); color: var(--text-2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .art { background: #121218; }
  .art img { filter: invert(.92) hue-rotate(180deg) saturate(1.2) brightness(.95); }
  .art-caption { background: rgba(21, 21, 28, .72); border-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
  .art-kicker { color: #b7adfc; }
  .art-title { color: #f1f1f6; }
}
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .art { display: none; }
  .form-side { padding: 28px 24px 22px; }
  .form-body { padding: 36px 0 28px; }
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 2px solid #07a0c3; color: currentColor; font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
