:root {
  --navy: #0a3063;
  --navy-deep: #061d3d;
  --teal: #078f90;
  --teal-dark: #006d70;
  --ink: #102a43;
  --muted: #627587;
  --canvas: #f3f8f9;
  --surface: #ffffff;
  --border: #d6e2e6;
  --danger: #a8241b;
  --danger-soft: #fff1ef;
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

button,
input {
  font: inherit;
}

button,
input,
a {
  outline-offset: 3px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(7 143 144 / 34%);
}

.login-skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-170%);
}

.login-skip:focus {
  transform: none;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  padding: clamp(42px, 8vw, 110px);
  color: #fff;
  background:
    radial-gradient(circle at 8% 5%, rgb(13 179 177 / 48%), transparent 31%),
    radial-gradient(circle at 100% 90%, rgb(7 143 144 / 35%), transparent 38%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 72%);
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -190px;
  width: 460px;
  height: 460px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgb(255 255 255 / 3%),
    0 0 0 108px rgb(255 255 255 / 2%);
}

.login-brand > * {
  position: relative;
  z-index: 1;
}

.login-brand img {
  width: 230px;
  height: 142px;
  padding: 7px 14px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

.login-eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-brand .login-eyebrow {
  color: #91e0de;
}

.login-brand h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.login-brand p:not(.login-eyebrow) {
  max-width: 590px;
  margin: 20px 0 0;
  color: #c5d7e3;
  font-size: 17px;
  line-height: 1.65;
}

.login-trust-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e2edf3;
  font-size: 14px;
  font-weight: 700;
}

.login-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-trust-list span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 86px);
  background:
    linear-gradient(rgb(255 255 255 / 78%), rgb(255 255 255 / 78%)),
    radial-gradient(circle at 30% 20%, #d9f1f0, transparent 36%);
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgb(8 43 78 / 14%);
}

.login-card__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  border-radius: 14px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.login-intro,
.session-check p {
  margin: 10px 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

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

.login-card label {
  display: grid;
  gap: 7px;
}

.login-card label > span {
  color: #274259;
  font-size: 12px;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdccd3;
  border-radius: 9px;
}

.login-card input:hover {
  border-color: #8da8b4;
}

.login-card input:focus {
  border-color: var(--teal);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  margin-top: 3px;
  padding: 12px 18px;
  color: #fff;
  background: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  border-radius: 9px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(0 109 112 / 18%);
  text-align: center;
  text-decoration: none;
}

.login-button:hover:not(:disabled) {
  background: #005d60;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-button--google {
  width: 100%;
  margin-bottom: 4px;
  background: #fff;
  color: #183b61;
  border-color: #b9cbd4;
  box-shadow: 0 10px 24px rgb(8 43 78 / 9%);
}

.login-button--google:hover {
  background: #f7fbfc;
  border-color: #7997a5;
}

.google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #1769e0;
  border: 1px solid #d5e0e5;
  border-radius: 50%;
  font-weight: 900;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: #dfe8eb;
  content: "";
}

.login-local-note,
.login-route-link {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-route-link {
  margin-top: 22px;
  padding: 13px 14px;
  background: #eef8f8;
  border: 1px solid #cce4e3;
  border-radius: 9px;
}

.login-route-link a {
  color: var(--teal-dark);
  font-weight: 850;
}

.login-link-button {
  min-height: 40px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.login-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #f2c7c2;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.password-requirements {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-help {
  margin: 27px 0 0;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid #e6edef;
  font-size: 12px;
  line-height: 1.6;
}

.session-check {
  display: grid;
  justify-items: start;
}

.session-check strong {
  margin-top: 18px;
  font-size: 20px;
}

.login-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d6e6e8;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: login-spin 800ms linear infinite;
}

.login-noscript {
  position: fixed;
  inset: auto 14px 14px;
  z-index: 20;
  margin: 0;
  padding: 12px;
  color: #fff;
  background: var(--danger);
  border-radius: 9px;
  text-align: center;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 880px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: auto;
    gap: 20px;
    padding: 34px clamp(24px, 7vw, 60px);
  }

  .login-brand img {
    width: 170px;
    height: 98px;
  }

  .login-brand h1 {
    max-width: 560px;
    font-size: clamp(30px, 8vw, 44px);
  }

  .login-brand p:not(.login-eyebrow) {
    margin-top: 12px;
    font-size: 15px;
  }

  .login-trust-list {
    display: none;
  }

  .login-panel {
    padding: 28px 20px 48px;
  }
}

@media (max-width: 460px) {
  .login-brand {
    padding: 24px 20px;
  }

  .login-brand img {
    width: 142px;
    height: 82px;
  }

  .login-brand h1 {
    font-size: 29px;
  }

  .login-brand p:not(.login-eyebrow) {
    display: none;
  }

  .login-card {
    padding: 25px 20px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-spinner {
    animation-duration: 1.8s;
  }
}

/* ---- Design refresh (September 2026): shared type and palette ---- */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/public-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-var.woff2") format("woff2");
}
:root {
  --navy: #0a2f5c;
  --navy-deep: #071f3f;
  --navy-900: #0a2f5c;
  --navy-950: #071f3f;
  --teal: #0b8f8f;
  --teal-600: #0b8f8f;
  --teal-dark: #086b6c;
  --teal-700: #0a7f80;
  --ink: #12263a;
  --slate-900: #12263a;
  --muted: #5c6f80;
  --slate-600: #5c6f80;
  --canvas: #f3f6f8;
  --border: #d9e2e8;
  --slate-200: #d9e2e8;
  --danger: #b8433a;
  --danger-soft: #fbeae8;
  font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.login-eyebrow,
.workspace-label > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.login-button,
.button {
  border-radius: 8px;
  font-weight: 600;
}
input {
  border-radius: 8px;
}
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(11 143 143 / 18%);
  outline: none;
}
