/* Login, magic link og velkomst: designsystemets farver og skrift fra common.css (data-theme på <html>,
   theme-init.js sætter mørkt), så de ligner chat og indstillinger. Knapper er grafit, links og fokus blå. */

body {
  margin: 0;
  /* Vindueshøjden; virker ens i Safari og Chrome under zoom (common.css: --shell-height). */
  min-height: var(--shell-height);
  display: flex;
  flex-direction: column;
  background: var(--bg) radial-gradient(ellipse 70% 45% at 50% 0%, var(--accent-soft), transparent 70%) no-repeat;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
}
.logo {
  color: var(--header-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 16px 96px;
}
.panel {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
h1 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.lead { margin: 8px 0 24px; }

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--faint); }

button {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--action);
  color: var(--on-action);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
button:hover { background: var(--action-hover); }
button:not(:disabled):active { background: var(--action-active); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.notice[hidden] { display: none; }
.notice.success {
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  background: var(--success-soft);
  color: var(--success);
}
.notice.error {
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  background: var(--danger-soft);
  color: var(--danger-text);
}
.notice a { color: inherit; font-weight: 600; }
a { color: var(--accent-text); }
a:hover { color: var(--accent); }
.logo:hover { color: var(--header-text); }

.foot {
  margin-top: 20px;
  color: var(--faint);
  font-size: 13px;
}

@media (min-width: 640px) {
  header { padding: 0 24px; }
  .panel { padding: 36px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
