/* HB9Experts.ch — neutral SSO entry (Corporate Design Manual 2026).
 * One stylesheet shared by the login and the invite-registration page.
 * Brand tokens: docs/03_CI/brand-tokens.css. Fonts load from Google Fonts
 * (see the <link> in the templates); system fallbacks keep it readable if a
 * strict CSP blocks the webfont in production. */
:root {
  --ink:     #0E2140;  /* Tiefnavy   */
  --ink-2:   #0A1930;  /* deeper navy for the page backdrop */
  --frost:   #F1F4F8;  /* Papier     */
  --signal:  #2E6DA4;  /* Stahlblau — primary accent */
  --welle:   #7FB6D9;  /* Himmelblau — 2nd accent */
  --platin:  #C3CAD2;  /* Silber — lines */
  --graphit: #6B7482;  /* secondary text */
  --white:   #FFFFFF;
  --error:   #E4572E;
  --ok:      #3FA778;

  --card:     #14264a;               /* card panel on the navy backdrop */
  --card-line: rgba(127,182,217,0.22);
  --field-bg: rgba(9,20,44,0.6);
  --field-line: rgba(195,202,210,0.22);
  --text-dim: #A7B4C6;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  font-family: var(--font-text);
  color: var(--frost);
  background:
    radial-gradient(1200px 700px at 50% -10%, #1b3566 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(46,109,164,0.28) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  background-attachment: fixed;
}

/* faint orbit lines behind the card — evokes the satellite mark, stays subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 50% 42%, transparent 0 118px, rgba(127,182,217,0.05) 118px 119px);
  mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 70%);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(20,38,74,0.96) 0%, rgba(16,33,64,0.96) 100%);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 2.4rem 2.2rem 2rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-card--wide { max-width: 500px; }

/* ---- brand header ---- */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-brand img {
  width: 190px;
  max-width: 70%;
  height: auto;
  margin-bottom: 0.9rem;
}

.auth-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--welle);
  margin: 0;
}

.auth-sub {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---- alerts ---- */
.alert {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.alert-error {
  background: rgba(228,87,46,0.12);
  border: 1px solid rgba(228,87,46,0.5);
  color: #F6B9A5;
}
.alert-info {
  background: rgba(127,182,217,0.10);
  border: 1px solid rgba(127,182,217,0.4);
  color: var(--welle);
}

/* ---- form ---- */
.field { margin-bottom: 1.05rem; }
.field-row { display: flex; gap: 0.9rem; }
.field-row .field { flex: 1; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
label .req { color: var(--welle); }

input {
  display: block;
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  color: var(--frost);
  font-family: var(--font-text);
  font-size: 0.98rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #5f6c81; }
input:focus {
  outline: none;
  border-color: var(--welle);
  box-shadow: 0 0 0 3px rgba(127,182,217,0.18);
}
input.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hint {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: var(--graphit);
  line-height: 1.4;
}

/* ---- buttons ---- */
.btn {
  display: block;
  width: 100%;
  padding: 0.82rem 1rem;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--signal);
  color: var(--white);
}
.btn-primary:hover { background: #3a7fbd; }
.btn-outline {
  background: transparent;
  color: var(--welle);
  border: 1px solid var(--card-line);
}
.btn-outline:hover { border-color: var(--welle); background: rgba(127,182,217,0.07); }

/* ---- divider ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0 1.1rem;
  color: var(--graphit);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--field-line);
}

/* ---- footer ---- */
.auth-foot {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--graphit);
  line-height: 1.5;
}
.auth-foot a { color: var(--welle); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-foot .sep { opacity: 0.5; margin: 0 0.4rem; }

@media (max-width: 460px) {
  .auth-card { padding: 1.9rem 1.4rem 1.6rem; }
  .field-row { flex-direction: column; gap: 0; }
}
