/* School login (school_base.html) and the first-visit notice (hinweis.html): the dark look of the
   Schülerprojekte website (website/site/schuelerprojekte.css). No JavaScript except topbar.js. */
:root {
  --bg: #050605;
  --surface: #0b0e0b;
  --surface-2: #111611;
  --text: #f1f6ee;
  --muted: #8f9c8c;
  --faint: #5d685b;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --lime: #b6f23a;
  --mint: #3fe0a8;
  --bad: #ff8a7a;
  --warn: #f2c94c;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
::selection { background: var(--lime); color: #0a1204; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------------------------------------------------------------- background: grid and two glows */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(110px); }
.aurora.a1 {
  width: 50vw; height: 44vw; top: -18vw; right: -10vw; opacity: .45;
  background: radial-gradient(circle, rgba(182, 242, 58, .55), transparent 65%);
}
.aurora.a2 {
  width: 42vw; height: 38vw; bottom: -18vw; left: -14vw; opacity: .25;
  background: radial-gradient(circle, rgba(63, 224, 168, .6), transparent 65%);
}

/* ---------------------------------------------------------------- "unofficial" bar (topbar.js) */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 7px 44px; text-align: center;
  color: #e9d27a; font-size: 13px; line-height: 1.45;
  background: rgba(242, 201, 76, .07); border-bottom: 1px solid rgba(242, 201, 76, .18);
}
.topbar a { color: var(--warn); font-weight: 600; white-space: nowrap; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-close {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 7px; background: none; color: #e9d27a; cursor: pointer;
}
.topbar-close:hover, .topbar-close:focus-visible { background: rgba(242, 201, 76, .14); outline: none; }

/* ---------------------------------------------------------------- brand (first-visit notice) */
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em;
}
.brand b { color: var(--lime); font-weight: 650; }

/* ---------------------------------------------------------------- the card */
.wrap {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(12px, 4vh, 48px) 16px clamp(24px, 6vh, 64px);
}
.card {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(26px, 6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 26, 20, .82), rgba(10, 13, 10, .82));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
/* Lime light along the top edge */
.card::before {
  content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}
.card.wide { width: min(100%, 680px); }

/* Round icon above the title */
/* Icon and heading in one row ("[✉] Anmelden"). */
.title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.title h1 { margin: 0; }
.badge {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border: 1px solid rgba(182, 242, 58, .3); border-radius: 16px;
  color: var(--lime); background: rgba(182, 242, 58, .08);
  box-shadow: 0 0 30px -8px rgba(182, 242, 58, .5);
}
.badge.bad { color: var(--bad); border-color: rgba(255, 138, 122, .3); background: rgba(255, 138, 122, .08); box-shadow: none; }
.badge svg { width: 24px; height: 24px; }

h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 6vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em;
  background: linear-gradient(180deg, #ffffff 40%, #b5c0b1 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.ok { background: linear-gradient(180deg, #e4ff9e, var(--lime)); -webkit-background-clip: text; background-clip: text; }
h1.bad { background: none; color: var(--bad); }
p { margin: 0 0 14px; color: var(--muted); }
p strong, li strong { color: var(--text); font-weight: 600; }
.lead { margin-bottom: 24px; }
.hint { margin: 16px 0 0; color: var(--faint); font-size: 13.5px; }
ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
li { margin-bottom: 10px; }
li::marker { color: var(--lime); }
.mc {
  padding: 1px 8px; border: 1px solid rgba(182, 242, 58, .25); border-radius: 8px;
  color: var(--lime); background: rgba(0, 0, 0, .35); font: 600 .95em var(--mono);
}

/* ---------------------------------------------------------------- forms */
.stack { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { color: var(--text); font-size: 13.5px; font-weight: 550; }
.stack input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  color: var(--text); background: rgba(0, 0, 0, .4);
  font-family: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.stack input::placeholder { color: var(--faint); }
.stack input:hover { border-color: rgba(255, 255, 255, .22); }
.stack input:focus { outline: none; border-color: rgba(182, 242, 58, .6); box-shadow: 0 0 0 4px rgba(182, 242, 58, .12); }
/* Schul-ID: the field and the fixed "@htlstp.at" after it look like one input. */
.suffix-input {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(0, 0, 0, .4);
  transition: border-color .2s, box-shadow .2s;
}
.suffix-input:hover { border-color: rgba(255, 255, 255, .22); }
.suffix-input:focus-within { border-color: rgba(182, 242, 58, .6); box-shadow: 0 0 0 4px rgba(182, 242, 58, .12); }
.stack .suffix-input input {
  flex: 1; min-width: 0; padding-right: 4px; border: 0; background: none; box-shadow: none;
}
.suffix { padding-right: 16px; color: var(--muted); font-size: 16px; white-space: nowrap; user-select: none; }
.stack input.code {
  height: 64px; text-align: center;
  font: 700 28px var(--mono); letter-spacing: .4em; text-indent: .4em;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; margin: 4px 0 0; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #d2ff74, var(--lime));
  color: #0a1204; font-family: inherit; font-size: 16px; font-weight: 650; line-height: 1; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(182, 242, 58, .5), 0 8px 30px -6px rgba(182, 242, 58, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(182, 242, 58, .7), 0 14px 40px -6px rgba(182, 242, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost {
  color: var(--text); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn:disabled { cursor: default; filter: saturate(.3) brightness(.8); transform: none; }
.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--lime); font: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- messages */
.msg { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px; }
.msg.ok { color: var(--text); background: rgba(182, 242, 58, .08); border: 1px solid rgba(182, 242, 58, .3); }
.msg.bad { color: #ffd2cb; background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .35); }
.msg.bad.junk-notice { color: var(--bad); font-size: 1.25rem; }
/* The code shown on the page (laptop test server only) */
.dev {
  padding: 12px 14px; border: 1px dashed rgba(242, 201, 76, .5); border-radius: 14px;
  color: #e9d27a; background: rgba(242, 201, 76, .05);
}
.dev strong { color: var(--warn); }


/* ---------------------------------------------------------------- footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  padding: 18px 16px 28px; color: var(--faint); font-size: 13px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------------------------------------------------------------- first-visit notice (hinweis.html) */
.gate { align-items: center; justify-content: center; padding: 24px 16px; }
.gate-box { width: min(100%, 540px); }
.gate-box .brand { margin-bottom: 28px; }
.gate-box h1 { font-size: clamp(28px, 6vw, 38px); margin-bottom: 14px; }
.gate-box p { font-size: 16.5px; }
.gate-box .official { margin: 14px 0 28px; }
.gate-box .official a { font-weight: 600; text-decoration: none; }
.gate-box .official a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- small screens */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
