:root {
  --bg: #101216;
  --panel: #171a20;
  --line: #2b3039;
  --fg: #e8eaef;
  --muted: #8d95a3;
  --accent: #f9a03f;
  --err: #ef6b6b;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 460px);
}

/* ------------------------------------------------------------ 3D-Buehne */

.stage { position: relative; overflow: hidden; }

#scene { position: absolute; inset: 0; }
#scene canvas { display: block; }

/* Weicher Abfall zum Panel hin, damit die Kanten nicht hart abschneiden */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 45% 45%, rgba(249,160,63,.09), transparent 62%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, var(--bg) 100%);
}

.caption {
  position: absolute;
  left: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 60%;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}

/* --------------------------------------------------------------- Formular */

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 46px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  position: relative;
}

.logo { font-size: 30px; line-height: 1; }

h1 {
  margin: 12px 0 0;
  font-size: 30px;
  letter-spacing: -0.5px;
}

.sub {
  margin: 6px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input {
  width: 100%;
  margin-bottom: 18px;
  padding: 11px 13px;
  font: inherit;
  color: var(--fg);
  background: #0f1116;
  border: 1px solid var(--line);
  border-radius: 8px;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,160,63,.16);
}

button {
  width: 100%;
  padding: 12px;
  font: inherit;
  font-weight: 650;
  color: #1a1206;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .15s;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: .6; cursor: default; }

.error {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--err);
}

footer {
  position: absolute;
  left: 46px;
  bottom: 26px;
  font-size: 12px;
  color: #5c6472;
}

.spin {
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  html, body { overflow: auto; }
  body { grid-template-columns: 1fr; grid-template-rows: 40vh auto; }
  .panel { border-left: none; border-top: 1px solid var(--line); padding: 32px 24px 70px; }
  .caption { left: 20px; bottom: 14px; max-width: 88%; }
  footer { left: 24px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
}
