/* Die Schleuse.

   Eigene Datei statt der Tokens aus apps/web/src/styles.css: hier läuft kein
   Angular und kein Tailwind, und drei Seiten rechtfertigen keinen Build-Schritt.
   Die Werte sind dieselben wie in `mail/templates/layout.ts` — ändert sich die
   Marke, ändern sich beide. */
:root {
  --ink: #14143f;
  --body: #45456b;
  --muted: #6f6f92;
  --violet: #644cfc;
  --page: #eeecf9;
  --card: #ffffff;
  --sunken: #f8f7fd;
  --line: #ebe8f6;
  --edge: #e3e0f2;
  --danger: #b4245e;
  --ok: #1f7a5a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--page);
  color: var(--body);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(20, 20, 63, 0.45);
}

/* Der Kegelverlauf des Zeichens, ausgerollt — dieselbe Reihenfolge wie in den
   Mails. Zierde: fällt er aus, bleibt Violett stehen. */
.stripe {
  height: 4px;
  background: var(--violet);
  background-image: linear-gradient(90deg, #5e4cff 0%, #5e4cff 18%, #7c4bf6 40%,
    #a24ddb 54%, #c655ae 68%, #e26aa4 82%, #fc967e 100%);
}

.inner { padding: 32px 28px 28px; }

img.mark { display: block; width: 40px; height: 40px; margin-bottom: 18px; }

h1 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 14px; }
p.small { font-size: 14px; color: var(--muted); }
p:last-child { margin-bottom: 0; }

label {
  display: block;
  margin: 18px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

input[type='password'] {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;
  color: var(--ink);
  background: var(--sunken);
  border: 1px solid var(--edge);
  border-radius: 10px;
}

input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -1px;
}

button, a.button {
  display: inline-block;
  width: 100%;
  margin-top: 22px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--violet);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

button[disabled] { opacity: 0.55; cursor: default; }

.code {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}

.note { margin-top: 16px; font-size: 14px; }
.note.error { color: var(--danger); }
.note.ok { color: var(--ok); }

footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
