/* Geist, from the lab's public font files (same site, allowed by font-src 'self'). Colours as before G3. */
@font-face { font-family: "Geist"; src: url("/public/Geist-Variable.woff2?v=1") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --nx-void: #080225; --nx-navy: #151038; --nx-navy-lift: #211b3b; --nx-edge: #393551;
  --nx-lav: #c7adfc; --nx-violet: #7233f7; --nx-violet-hover: #6023de; --nx-amber: #ffae2d;
  --nx-text: #ffffff; --nx-body: #e6e6e9; --nx-muted: #a3a8ae; --nx-error: #e08a78;
  --nx-line: rgba(255,255,255,0.07); --nx-line-strong: rgba(255,255,255,0.13);
  --nx-font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--nx-void); color: var(--nx-body); font-family: var(--nx-font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.nx-glow {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(60rem 36rem at 50% -10%, rgba(114,51,247,0.28), transparent 70%),
              radial-gradient(40rem 30rem at 100% 110%, rgba(114,51,247,0.10), transparent 70%);
}
.nx-shell {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 48px 20px 32px; gap: 28px;
}
.nx-card {
  width: 100%; max-width: 440px; padding: 44px 40px 36px;
  background: linear-gradient(180deg, rgba(33,27,59,0.92), rgba(21,16,56,0.92));
  border: 1px solid var(--nx-line-strong); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(114,51,247,0.18), 0 24px 60px rgba(0,0,0,0.45);
}
.nx-eyebrow {
  margin: 0 0 22px; color: var(--nx-lav); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em;
}
.nx-title {
  margin: 0 0 10px; color: var(--nx-text); font-size: clamp(26px, 22px + 1vw, 32px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere;
}
.nx-lead { margin: 0 0 28px; color: var(--nx-muted); }
.nx-form { display: flex; flex-direction: column; }
.nx-label { margin: 0 0 8px; color: var(--nx-body); font-size: 14px; font-weight: 500; }
.nx-input {
  width: 100%; margin: 0 0 20px; padding: 13px 14px; font: inherit; color: var(--nx-text);
  background: rgba(8,2,37,0.6); border: 1px solid var(--nx-edge); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.nx-input:focus { outline: none; border-color: var(--nx-violet); box-shadow: 0 0 0 3px rgba(114,51,247,0.28); }
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 6px; padding: 13px 20px; font: inherit; font-weight: 600; color: #fff;
  background: var(--nx-violet); border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; list-style: none; transition: background .15s, box-shadow .15s;
}
.nx-btn:hover { background: var(--nx-violet-hover); box-shadow: 0 6px 22px rgba(114,51,247,0.35); }
.nx-btn:focus-visible { outline: 2px solid var(--nx-lav); outline-offset: 2px; }
.nx-btn::-webkit-details-marker { display: none; }
.nx-btn-ghost { background: transparent; border-color: var(--nx-edge); color: var(--nx-body); }
.nx-btn-ghost:hover { background: rgba(255,255,255,0.04); box-shadow: none; }
.nx-error {
  margin: 0 0 20px; padding: 11px 14px; color: #ffd9d1; font-size: 14px;
  background: rgba(224,138,120,0.10); border: 1px solid rgba(224,138,120,0.45); border-radius: 10px;
}
.nx-note { margin: 24px 0 0; color: var(--nx-muted); font-size: 13px; text-align: center; }
a.nx-btn { text-decoration: none; }
.nx-link { color: var(--nx-lav); text-underline-offset: 2px; }
.nx-link:hover { color: var(--nx-text); }
.nx-cta { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--nx-line-strong); text-align: center; }
.nx-cta-title { margin: 0 0 4px; color: var(--nx-text); font-size: 15px; font-weight: 600; }
.nx-cta-text { margin: 0 0 14px; color: var(--nx-muted); font-size: 14px; }
.nx-form + .nx-cta-text { margin-top: 22px; }
.nx-optional { color: var(--nx-muted); font-weight: 400; }
.nx-textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.nx-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c7adfc' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.nx-select option { color: var(--nx-text); background: var(--nx-navy); }
.nx-input[aria-invalid="true"] { border-color: rgba(224,138,120,0.75); }
.nx-field-error { margin: -12px 0 18px; color: #ffd9d1; font-size: 13px; }
.nx-status {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 30px; padding: 12px 14px;
  color: var(--nx-body); font-size: 14px; background: rgba(8,2,37,0.5);
  border: 1px solid var(--nx-line-strong); border-radius: 10px;
}
.nx-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--nx-amber);
  box-shadow: 0 0 0 4px rgba(255,174,45,0.15); }
.nx-launch { margin: 0 0 14px; }
.nx-launch[open] .nx-btn { background: var(--nx-navy-lift); border-color: var(--nx-violet); }
.nx-launch-msg {
  margin: 14px 0 0; padding: 14px; color: var(--nx-lav); font-size: 14px; text-align: center;
  border: 1px dashed rgba(199,173,252,0.4); border-radius: 10px;
}
.nx-signout { margin: 0; }
.nx-footer { color: var(--nx-muted); font-size: 13px; letter-spacing: 0.08em; text-align: center; }
@media (max-width: 480px) {
  .nx-card { padding: 32px 22px 26px; border-radius: 14px; }
  .nx-shell { justify-content: flex-start; padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* For the sign-up wording (G3): links inside notes in the link colour, a hint line, the "what happens next" list. */
.nx-note a, .nx-cta-text a { color: var(--nx-lav); text-underline-offset: 2px; }
.nx-note a:hover, .nx-cta-text a:hover { color: var(--nx-text); }
.nx-hint { margin: -14px 0 18px; color: var(--nx-muted); font-size: 13px; }
.nx-steps { margin: 0 0 26px; padding-left: 20px; color: var(--nx-body); font-size: 15px; line-height: 1.6; }
.nx-steps li { margin: 0 0 6px; }
.nx-btn + .nx-btn { margin-top: 10px; }

/* nelix:signup-types  "I am a..." form (only on the new form; no other page uses these classes) */
/* "I am a..." choices: full-width stacked rows (2026-10-17; same markup, names and values; the form column is ~360 px, so the description sits under the title) */
.nx-types { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-inline-size: 0; margin: 0 0 18px; padding: 0; border: 0; }
.nx-types legend { margin-bottom: 8px; padding: 0; }
.nx-type { box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; min-height: 56px; padding: 12px 14px; background: rgba(8,2,37,0.6); border: 1px solid var(--nx-edge); border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.nx-type:hover { border-color: rgba(199,173,252,0.45); }
.nx-type:has(input:checked) { border-color: var(--nx-violet); background: rgba(114,51,247,0.14); box-shadow: 0 0 0 1px var(--nx-violet) inset; }
.nx-type input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--nx-violet); cursor: pointer; }
.nx-type span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nx-type b { font-weight: 600; color: var(--nx-text); overflow-wrap: anywhere; }
.nx-type small { color: var(--nx-muted); font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.nx-type:has(input:focus-visible) { outline: 2px solid var(--nx-lav); outline-offset: 2px; }
@supports not selector(:has(a)) { .nx-type:focus-within { outline: 2px solid var(--nx-lav); outline-offset: 2px; } }
.nx-sec { margin: 8px 0 4px; padding-top: 6px; }
.nx-sec-title { margin: 10px 0 4px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.nx-for-university { display: none; }
.nx-typed:has(input[name="account_type"]) .nx-sec { display: none; }
.nx-typed:has(#t-student:checked) .nx-sec-student,
.nx-typed:has(#t-engineer:checked) .nx-sec-engineer,
.nx-typed:has(#t-university:checked) .nx-sec-university { display: block; }
.nx-typed:has(#t-university:checked) .nx-for-university { display: inline; }
.nx-typed .nx-sec-title { display: none; }
@supports not selector(:has(a)) { .nx-typed .nx-sec-title { display: block; } }
/* nelix:signup-profile  profile fields on the new form (2026-10-17) */
.nx-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.nx-check input { margin: 3px 0 0; accent-color: #6A47F0; width: 16px; height: 16px; flex: 0 0 auto; }
.nx-privacy { margin-top: 12px; font-size: 12.5px; }
.nx-for-other { display: none; }
.nx-typed:has(#heard_about option:checked[value="Other"]) .nx-for-other,
.nx-typed:has(#heard_about option:last-child:checked) .nx-for-other { display: block; }
@supports not selector(:has(a)) { .nx-for-other { display: block; } }

/* ---------- premium look (2026-10-29, owner): same markup; card, choices, fields and button match the home page ---------- */
:root { --nx-muted: #b6b0d4; }
.nx-glow { background: radial-gradient(60rem 36rem at 50% -10%, rgba(114,51,247,0.32), transparent 70%),
  radial-gradient(40rem 30rem at 100% 110%, rgba(114,51,247,0.12), transparent 70%),
  linear-gradient(rgba(150,125,255,0.05) 1px, transparent 1px) 0 0 / 96px 96px,
  linear-gradient(90deg, rgba(150,125,255,0.05) 1px, transparent 1px) 0 0 / 96px 96px; }
.nx-card { position: relative; max-width: 460px; padding: 48px 44px 38px; border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(180deg, rgba(26,18,72,0.94), rgba(14,8,48,0.96)) padding-box,
  linear-gradient(160deg, rgba(214,198,255,0.55), rgba(114,51,247,0.28) 35%, rgba(255,255,255,0.06) 70%) border-box;
  box-shadow: 0 40px 100px -20px rgba(4,0,20,0.9), 0 30px 80px -30px rgba(114,51,247,0.55), inset 0 1px 0 rgba(255,255,255,0.06); }
.nx-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 10px; font-size: 11px; color: #d6c6ff;
  border: 1px solid rgba(199,173,252,0.35); border-radius: 999px; background: rgba(114,51,247,0.12); }
.nx-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c7adfc; box-shadow: 0 0 0 3px rgba(199,173,252,0.18), 0 0 10px #a886ff; }
.nx-title { font-size: clamp(28px, 22px + 1.4vw, 36px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 40%, #d2c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-lead { color: #c9c4e0; font-size: 15.5px; }
.nx-label { color: #ece8fb; font-weight: 550; letter-spacing: 0.005em; }
.nx-input { padding: 14px 15px; background-color: rgba(6,1,28,0.72); border-color: rgba(150,125,255,0.22); border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35); }
.nx-input::placeholder { color: #8f88b8; }
.nx-input:hover { border-color: rgba(199,173,252,0.4); }
.nx-input:focus { border-color: #9a6bff; box-shadow: 0 0 0 4px rgba(114,51,247,0.25), inset 0 1px 2px rgba(0,0,0,0.35); }
/* "I am a..." choices: glass rows, a drawn radio, a lit edge when chosen */
.nx-type { position: relative; align-items: center; padding: 14px 16px; border-radius: 14px; border-color: rgba(150,125,255,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), rgba(6,1,28,0.6);
  transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s; }
.nx-type:hover { transform: translateY(-1px); border-color: rgba(199,173,252,0.5); box-shadow: 0 10px 24px -12px rgba(114,51,247,0.6); }
.nx-type input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 50%;
  border: 1.5px solid rgba(199,173,252,0.55); background: rgba(8,2,37,0.8); display: grid; place-content: center; }
.nx-type input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.nx-type input:checked { border-color: #9a6bff; background: #7233f7; box-shadow: 0 0 0 4px rgba(114,51,247,0.25); }
.nx-type input:checked::before { transform: scale(1); }
.nx-type:has(input:checked) { border-color: #9a6bff; background: linear-gradient(180deg, rgba(114,51,247,0.22), rgba(114,51,247,0.08));
  box-shadow: 0 0 0 1px #9a6bff inset, 0 14px 30px -14px rgba(114,51,247,0.7); }
.nx-type b { font-size: 15.5px; }
.nx-type small { color: #b6b0d4; }
/* news tick box: text wraps under itself, the "(optional ...)" note runs on after it */
.nx-check { display: block; position: relative; padding-left: 30px; color: #dcd8ef; }
.nx-check input { position: absolute; left: 0; top: 1px; appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0;
  border: 1.5px solid rgba(199,173,252,0.55); border-radius: 5px; background: rgba(8,2,37,0.8); display: grid; place-content: center; }
.nx-check input::before { content: ""; width: 10px; height: 6px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .15s; }
.nx-check input:checked { background: #7233f7; border-color: #9a6bff; }
.nx-check input:checked::before { transform: rotate(-45deg) scale(1); }
.nx-check input:focus-visible { outline: 2px solid var(--nx-lav); outline-offset: 2px; }
.nx-check .nx-optional { color: #a39dc4; }
/* the button: same as the home page */
.nx-btn { padding: 15px 22px; border-radius: 12px; background: linear-gradient(180deg, #8452fa 0%, #7233f7 55%, #6526e8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 1px rgba(114,51,247,0.6), 0 12px 30px -8px rgba(114,51,247,0.7);
  transition: transform .15s, box-shadow .15s; }
.nx-btn:hover { background: linear-gradient(180deg, #8f62ff 0%, #7a3cff 55%, #6a2bf0 100%); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 1px rgba(150,110,255,0.8), 0 16px 38px -8px rgba(114,51,247,0.85); }
.nx-btn-ghost { background: transparent; box-shadow: none; border-color: rgba(150,125,255,0.3); }
.nx-btn-ghost:hover { background: rgba(255,255,255,0.04); box-shadow: none; }
.nx-note { color: #b6b0d4; }
.nx-footer { color: #a39dc4; }
@media (max-width: 480px) { .nx-card { padding: 34px 22px 28px; border-radius: 18px; } }

/* uni-premium 2026-11-01 (owner screenshot): a hint placed right under its label (Class code) no longer overlaps the label */
.nx-label + .nx-hint { margin: -2px 0 10px; }
/* a class code that came in the invitation link: the university comes from the class, so its question is not asked */
#class_code:not([value=""]) ~ label[for="university"], #class_code:not([value=""]) ~ #university { display: none; }
