/* Public unauthenticated pages: login and cookie notice only. */
:root {
  --nb-blue: #3f61d9;
  --nb-blue-dark: #2546b8;
  --nb-ink: #202532;
  --nb-muted: #596273;
  --nb-soft: #f5f7fc;
  --nb-line: #dce2f0;
  --nb-error: #b3261e;
  --nb-success: #176b3a;
  --nb-panel: #ffffff;
  --nb-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body footer .site-legal-notice {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
}

body footer.site-generated-footer {
  padding: 24px 0 0;
  color: var(--nb-muted);
  font-size: 0.82rem;
  text-align: center;
}

body.page-login,
body.page-cookie-notice {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--nb-ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(63, 97, 217, 0.12), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(23, 131, 170, 0.08), transparent 22%),
    linear-gradient(135deg, #f6f8ff 0%, #ffffff 48%, #edf3fb 100%);
  position: relative;
}

body.page-login::before,
body.page-cookie-notice::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(120deg, transparent 0 48%, rgba(63, 97, 217, 0.20) 49%, transparent 50% 100%),
    radial-gradient(circle, rgba(63, 97, 217, 0.34) 0 2px, transparent 3px);
  background-size: 290px 220px, 180px 180px;
  background-position: 20px 10px, 20px 40px;
}

body.page-login {
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

body.page-login .login-shell,
body.page-cookie-notice .page-shell {
  width: min(100%, 900px);
  position: relative;
  z-index: 1;
}

body.page-login .login-shell {
  max-width: 540px;
}

body.page-login .brand,
body.page-cookie-notice .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--nb-ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-login .brand-mark,
body.page-cookie-notice .brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(63, 97, 217, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(33, 44, 84, 0.14);
}

body.page-login .brand-mark img,
body.page-cookie-notice .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-login .login-panel,
body.page-cookie-notice .notice-panel {
  background: var(--nb-panel);
  border: 1px solid rgba(220, 226, 240, 0.94);
  border-radius: 24px;
  box-shadow: var(--nb-shadow);
  overflow: hidden;
}

body.page-login .login-panel {
  padding: 44px 40px 38px;
}

body.page-login h1,
body.page-cookie-notice h1 {
  margin: 0;
  color: var(--nb-ink);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.page-login h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 7vw, 3.1rem);
  text-align: center;
}

body.page-login .lede {
  margin: 0 0 30px;
  color: #596273;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

body.page-login .login-form {
  display: grid;
  gap: 18px;
}

body.page-login label {
  display: grid;
  gap: 8px;
  color: #252b3a;
  font-size: 1rem;
  font-weight: 900;
}

body.page-login input {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--nb-line);
  border-radius: 18px;
  padding: 13px 16px;
  background: #fff;
  color: var(--nb-ink);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.page-login input:focus {
  border-color: var(--nb-blue);
  box-shadow: 0 0 0 4px rgba(63, 97, 217, 0.16);
}

body.page-login .submit-button,
body.page-cookie-notice .back-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  background: var(--nb-blue);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

body.page-login .submit-button {
  width: 100%;
  margin-top: 8px;
}

body.page-login .submit-button:hover,
body.page-cookie-notice .back-link:hover,
body.page-cookie-notice .back-link:focus {
  background: var(--nb-blue-dark);
  transform: translateY(-1px);
}

body.page-login .submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

body.page-login .form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

body.page-login .form-message.error {
  color: var(--nb-error);
}

body.page-login .form-message.success {
  color: var(--nb-success);
}

body.page-login .footnote,
body.page-login .cookie-note {
  color: var(--nb-muted);
  line-height: 1.45;
  text-align: center;
}

body.page-login .footnote {
  margin: 24px 0 0;
  font-size: 0.96rem;
  font-weight: 700;
}

body.page-login .cookie-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

body.page-login .cookie-note a {
  color: #1745b6;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-login .theme-toggle {
  margin: 18px auto 0;
}

body.page-login .login-theme-toggle,
body.page-cookie-notice .theme-toggle {
  display: flex;
}

body.page-login .login-theme-toggle {
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(63, 97, 217, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(33, 44, 84, 0.12);
  cursor: pointer;
}

body.page-login .theme-option {
  color: #475267;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-login .theme-switch input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

body.page-login .theme-track {
  display: block;
  width: 58px;
  height: 32px;
  padding: 4px;
  border: 2px solid var(--nb-blue);
  border-radius: 999px;
  background: #edf1ff;
  transition: background 180ms ease, border-color 180ms ease;
}

body.page-login .theme-thumb {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nb-blue);
  box-shadow: 0 6px 12px rgba(33, 44, 84, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

body.page-login .theme-switch input:focus-visible + .theme-track {
  outline: 3px solid rgba(63, 97, 217, 0.34);
  outline-offset: 3px;
}

body.page-login .theme-switch input:checked + .theme-track {
  background: #111827;
  border-color: #8ea2ff;
}

body.page-login .theme-switch input:checked + .theme-track .theme-thumb {
  transform: translateX(26px);
  background: #f8fafc;
}

body.page-cookie-notice {
  padding: 34px 18px;
}

body.page-cookie-notice .page-shell {
  margin: 0 auto;
}

body.page-cookie-notice .notice-hero {
  padding: 42px 44px 36px;
  border-bottom: 1px solid var(--nb-line);
  background:
    radial-gradient(circle at 8% 0%, rgba(63, 97, 217, 0.14), transparent 36%),
    linear-gradient(135deg, #f7f9ff 0%, #ffffff 100%);
}

body.page-cookie-notice h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

body.page-cookie-notice .updated {
  margin: 0;
  color: #596273;
  font-size: 1rem;
  font-weight: 800;
}

body.page-cookie-notice .notice-body {
  display: grid;
  gap: 26px;
  padding: 36px 44px 44px;
}

body.page-cookie-notice section {
  display: grid;
  gap: 12px;
}

body.page-cookie-notice h2 {
  margin: 0;
  color: var(--nb-blue-dark);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-cookie-notice p {
  margin: 0;
  color: #303746;
  font-size: 1rem;
  line-height: 1.62;
}

body.page-cookie-notice .cookie-card {
  border: 1px solid var(--nb-line);
  border-radius: 16px;
  background: var(--nb-soft);
  overflow: hidden;
}

body.page-cookie-notice .cookie-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--nb-line);
}

body.page-cookie-notice .cookie-row:last-child {
  border-bottom: 0;
}

body.page-cookie-notice .cookie-label {
  color: #596273;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-cookie-notice .cookie-value {
  color: var(--nb-ink);
  line-height: 1.5;
}

body.page-cookie-notice .back-link {
  width: fit-content;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body.page-login,
html[data-theme="dark"] body.page-cookie-notice {
  --nb-ink: #202532;
  --nb-muted: #596273;
  background:
    radial-gradient(circle at 16% 12%, rgba(63, 97, 217, 0.18), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(23, 131, 170, 0.12), transparent 22%),
    linear-gradient(135deg, #070b15 0%, #101827 48%, #07111b 100%);
}

html[data-theme="dark"] body.page-login::before,
html[data-theme="dark"] body.page-cookie-notice::before {
  opacity: 0.16;
  background-image:
    linear-gradient(120deg, transparent 0 48%, rgba(142, 162, 255, 0.42) 49%, transparent 50% 100%),
    radial-gradient(circle, rgba(83, 111, 232, 0.55) 0 2px, transparent 3px);
}

html[data-theme="dark"] body.page-login .brand,
html[data-theme="dark"] body.page-cookie-notice .brand {
  color: #f6f8ff;
}

html[data-theme="dark"] body.page-login .brand-mark,
html[data-theme="dark"] body.page-cookie-notice .brand-mark {
  border-color: rgba(198, 207, 236, 0.34);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body.page-login .login-theme-toggle {
  border-color: rgba(198, 207, 236, 0.24);
  background: rgba(16, 24, 39, 0.76);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body.page-login .theme-option {
  color: #d7def1;
}

@media (max-width: 620px) {
  body.page-login,
  body.page-cookie-notice {
    padding: 24px 14px;
  }

  body.page-login .brand,
  body.page-cookie-notice .brand {
    font-size: 0.92rem;
  }

  body.page-login .login-panel {
    padding: 34px 22px 30px;
    border-radius: 22px;
  }

  body.page-cookie-notice .notice-panel {
    border-radius: 22px;
  }

  body.page-cookie-notice .notice-hero,
  body.page-cookie-notice .notice-body {
    padding-left: 22px;
    padding-right: 22px;
  }

  body.page-cookie-notice .cookie-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Public-page counterpart to the portal's main-site-inspired material depth. */
body.page-login,
body.page-cookie-notice {
  --nb-material-highlight: rgba(255, 255, 255, 0.90);
  --nb-material-soft-highlight: rgba(255, 255, 255, 0.56);
  --nb-material-edge: rgba(33, 44, 84, 0.14);
  --nb-material-drop: rgba(33, 44, 84, 0.17);
  --nb-material-panel-shadow:
    -1px -1px 0 var(--nb-material-highlight),
    0 30px 72px var(--nb-material-drop),
    inset 1px 1px 0 var(--nb-material-soft-highlight),
    inset -2px -3px 0 var(--nb-material-edge);
  --nb-public-surface:
    radial-gradient(circle at 100% 0%, rgba(63, 97, 217, 0.12), transparent 15rem),
    linear-gradient(145deg, #ffffff 0%, var(--nb-panel, #ffffff) 68%, #f1f5ff 100%);
}

body.page-login .login-panel,
body.page-cookie-notice .notice-panel {
  border-color: rgba(63, 97, 217, 0.18);
  background: var(--nb-public-surface);
  box-shadow: var(--nb-material-panel-shadow);
}

body.page-login .brand-mark,
body.page-cookie-notice .brand-mark {
  box-shadow:
    -1px -1px 0 var(--nb-material-highlight),
    0 18px 38px rgba(63, 97, 217, 0.18),
    inset 1px 1px 0 var(--nb-material-soft-highlight),
    inset -2px -3px 0 var(--nb-material-edge);
}

body.page-login input,
body.page-cookie-notice .cookie-card {
  box-shadow:
    inset 2px 3px 8px rgba(33, 44, 84, 0.10),
    0 1px 0 var(--nb-material-highlight);
}

body.page-login .submit-button,
body.page-cookie-notice .back-link {
  box-shadow:
    0 10px 22px rgba(37, 70, 184, 0.28),
    inset 1px 1px 0 rgba(255, 255, 255, 0.30),
    inset -1px -2px 0 rgba(25, 48, 128, 0.28);
}

html[data-theme="dark"] body.page-login,
html[data-theme="dark"] body.page-cookie-notice {
  --nb-material-highlight: rgba(255, 255, 255, 0.13);
  --nb-material-soft-highlight: rgba(255, 255, 255, 0.075);
  --nb-material-edge: rgba(0, 0, 0, 0.42);
  --nb-material-drop: rgba(0, 0, 0, 0.48);
  --nb-public-surface:
    radial-gradient(circle at 100% 0%, rgba(103, 128, 235, 0.13), transparent 15rem),
    linear-gradient(145deg, #ffffff 0%, #f8faff 68%, #edf2ff 100%);
}

html[data-theme="dark"] body.page-login .login-panel,
html[data-theme="dark"] body.page-cookie-notice .notice-panel {
  border-color: rgba(145, 162, 231, 0.22);
  box-shadow: var(--nb-material-panel-shadow);
}

html[data-theme="dark"] body.page-cookie-notice .cookie-card {
  border-color: rgba(63, 97, 217, 0.22);
}
