/* Log in / sign up page (site/login/index.html). External file: the page has a strict CSP (no inline style). */
:root {
  --bg: #f6f5f1; --fg: #16181d; --muted: #5b606b; --card: #ffffff;
  --line: #e3e1da; --accent: #1f6f5c; --accent-fg: #ffffff; --off: #b8bcc4;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111317; --fg: #eceae4; --muted: #9aa0ab; --card: #1a1d23;
          --line: #2a2e36; --accent: #4fb89b; --accent-fg: #0d1512; --off: #4a4f58; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap;
       align-items: center; justify-content: space-between; gap: 10px 12px; }
.bar-end { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
           gap: 8px; margin-left: auto; max-width: 100%; }
.brand { font-weight: 700; letter-spacing: -0.01em; font-size: 18px; color: inherit; text-decoration: none; }
.brand span { color: var(--accent); }
.nav-login { display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none;
             font-weight: 600; font-size: 14px; line-height: 1.2; border-radius: 14px; padding: 10px 14px;
             white-space: nowrap; }
.nav-login:hover { filter: brightness(1.06); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.badge { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border: 1px dashed var(--off);
         border-radius: 10px; line-height: 1.2; cursor: default; user-select: none; }
.badge-name { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.badge-soon { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.apps { display: none; }
.apps > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); background: var(--card);
                  color: var(--fg); border-radius: 14px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.apps > summary::-webkit-details-marker { display: none; }
.apps > summary::marker { content: ""; }
@media (max-width: 640px) {
  .badges-wide { display: none; }
  .apps { display: block; }
  .apps:not([open]) > .badges { display: none; }
  .nav-login { padding: 8px 10px; font-size: 13px; }
  .apps[open] > .badges { display: flex; position: absolute; right: 0; top: calc(100% + 8px); z-index: 2;
                          flex-direction: column; align-items: stretch; width: max-content;
                          max-width: calc(100vw - 32px); padding: 8px; background: var(--card);
                          border: 1px solid var(--line); border-radius: 14px;
                          box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45); }
}
/* Keeps the header on one row at 360 px with the longer labels ("Anmelden / Registrieren"). */
@media (max-width: 380px) {
  .bar { column-gap: 8px; }
  .bar-end > .nav-login { padding: 8px; }
  .apps > summary { padding: 8px 10px; }
}
main { max-width: 440px; margin: 0 auto; padding: 32px 16px 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; scroll-margin-top: 80px; }
.muted { color: var(--muted); margin: 0 0 18px; }
.label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.input { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
         border-radius: 14px; padding: 12px 14px; }
.error { margin: 10px 0 0; font-size: 14px; border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; }
.primary, .ghost { width: 100%; font: inherit; font-weight: 600; font-size: 15px; border-radius: 14px;
                   padding: 12px 14px; cursor: pointer; }
.primary { margin-top: 16px; background: var(--accent); color: var(--accent-fg); border: 0; }
.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.primary:disabled, .ghost:disabled { opacity: 0.55; cursor: default; }
/* A link that looks like a full-width button ("Go to your dashboard"). */
.block-link { display: block; text-align: center; text-decoration: none; }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.actions .primary { margin-top: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#sent-to, #who { word-break: break-all; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field + .field { margin-top: 14px; }
.alt { display: grid; gap: 10px; justify-items: start; margin-top: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--accent);
           text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.linkish:disabled { opacity: 0.55; cursor: default; }
h2 { font-size: 18px; margin: 22px 0 10px; }
.ok { margin: 10px 0 0; font-size: 14px; color: var(--accent); font-weight: 600; }
h1[tabindex]:focus { outline: none; } /* programmatic focus for screen readers only */
.legal-links { margin: 20px 4px 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.legal-links a { color: inherit; text-underline-offset: 2px; }
