@font-face {
  font-family: "GT America";
  src: url("/fonts/GT-America-Standard-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "GT America";
  src: url("/fonts/GT-America-Standard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Good Times";
  src: url("/fonts/Good-Times-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0e193a;
  --navy-soft: #1b2a54;
  --accent: #6370f9;
  --accent-soft: #eef0ff;
  --ink: #17213c;
  --muted: #647089;
  --line: #dfe3eb;
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --success: #14836f;
  --success-soft: #e7f6f1;
  --warning: #b65d28;
  --warning-soft: #fff2e8;
  --danger: #b4233a;
  --shadow: 0 18px 50px rgb(14 25 58 / 14%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "GT America", Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b7c3e9;
  font-family: "Good Times", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  background: var(--surface);
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgb(14 25 58 / 94%), rgb(14 25 58 / 62%)),
    url("/candidate/assets/candidate-hero.png");
  background-position: center;
  background-size: cover;
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  border-right: 6px solid var(--accent);
  content: "";
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  min-height: 100vh;
  padding: 54px clamp(36px, 7vw, 112px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-logo-light {
  width: 210px;
  filter: brightness(0) invert(1);
}

.auth-visual h1 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-family: "Good Times", Arial, sans-serif;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-intro {
  max-width: 520px;
  margin: 24px 0 0;
  color: #d7def2;
  font-size: 17px;
  line-height: 1.65;
}

.auth-support {
  margin: 0;
  color: #aeb9d7;
  font-size: 13px;
}

.auth-support a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.auth-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 48px clamp(32px, 5vw, 84px);
  background: #ffffff;
}

.auth-form-wrap {
  width: min(430px, 100%);
}

.auth-logo-dark {
  display: none;
  width: 190px;
  margin-bottom: 64px;
}

.auth-panel h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.auth-copy {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.auth-copy strong {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.auth-panel form > label,
.form-field > label,
.form-field legend {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-panel input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd2df;
  border-radius: 4px;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
}

.auth-panel input,
.form-field input,
.form-field select {
  padding: 0 15px;
}

.form-field textarea {
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
}

.auth-panel input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(99 112 249 / 15%);
}

.primary-button,
.secondary-button {
  min-height: 50px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 0 20px;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  margin-top: 18px;
  color: #ffffff;
  background: var(--navy);
}

.primary-button:hover {
  background: var(--navy-soft);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  color: var(--navy);
  background: #ffffff;
}

.code-input {
  height: 64px;
  padding-left: 22px !important;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
}

.back-button,
.text-button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.back-button {
  margin-bottom: 42px;
}

.back-button span {
  margin-right: 6px;
  font-size: 18px;
}

.text-button {
  display: block;
  margin: 20px auto 0;
}

.form-message {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.form-message.success {
  color: var(--success);
}

.privacy-note {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #8992a6;
  font-size: 12px;
  line-height: 1.55;
}

.portal {
  min-height: 100vh;
  background:
    linear-gradient(rgb(99 112 249 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(99 112 249 / 3%) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
}

.portal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

.portal-header img {
  display: block;
  width: 190px;
}

.portal-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.portal-header-actions span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  color: var(--navy);
  background: #ffffff;
  font-size: 18px;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sign-out-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  color: var(--navy);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.sign-out-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.welcome-band {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgb(14 25 58 / 97%) 0%, rgb(14 25 58 / 84%) 52%, rgb(14 25 58 / 30%) 100%),
    url("/candidate/assets/candidate-hero.png");
  background-position: center 42%;
  background-size: cover;
}

.welcome-band::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--accent);
  content: "";
}

.welcome-band-content {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.welcome-band h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-family: "Good Times", Arial, sans-serif;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome-band p:last-child {
  max-width: 620px;
  margin: 0;
  color: #d5dcf1;
  font-size: 16px;
  line-height: 1.6;
}

.candidate-summary {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.candidate-summary dl {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
}

.candidate-summary dl > div {
  min-width: 0;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.candidate-summary dl > div:first-child {
  padding-left: 0;
}

.candidate-summary dl > div:last-child {
  border-right: 0;
}

.candidate-summary dt,
.form-dialog-header .meta {
  margin-bottom: 6px;
  color: #7e889f;
  font-family: "Good Times", Arial, sans-serif;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.candidate-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.portal-content {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.35fr);
  gap: 68px;
}

.journey-section,
.actions-section {
  min-width: 0;
}

.section-heading {
  min-height: 58px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.2;
}

.progress-copy {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.journey-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-item {
  position: relative;
  min-height: 82px;
  padding: 0 0 24px 42px;
}

.journey-item::before {
  position: absolute;
  top: 12px;
  bottom: -4px;
  left: 11px;
  width: 1px;
  background: var(--line);
  content: "";
}

.journey-item:last-child::before {
  display: none;
}

.journey-marker {
  position: absolute;
  top: 2px;
  left: 0;
  width: 23px;
  height: 23px;
  border: 2px solid #b8c0d0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--canvas);
  font-size: 12px;
  font-weight: 700;
}

.journey-item.complete .journey-marker {
  border-color: var(--success);
  color: #ffffff;
  background: var(--success);
}

.journey-item.current .journey-marker {
  border: 6px solid var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.journey-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.journey-item.current strong {
  color: var(--accent);
}

.journey-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.candidate-actions {
  display: grid;
  gap: 12px;
}

.action-card {
  min-width: 0;
  min-height: 104px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgb(14 25 58 / 4%);
}

.action-card.is-complete {
  background: #f9fbfa;
}

.action-card-copy {
  min-width: 0;
}

.action-card-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: "Good Times", Arial, sans-serif;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.action-card.is-complete .action-card-copy span {
  color: var(--success);
}

.action-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.action-card .secondary-button {
  min-width: 112px;
}

.complete-label {
  min-width: 112px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.empty-actions {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.portal-footer {
  min-height: 100px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #aeb9d7;
  background: var(--navy);
  font-size: 12px;
}

.portal-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.form-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(860px, calc(100vh - 32px));
  margin: auto;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-dialog::backdrop {
  background: rgb(14 25 58 / 72%);
  backdrop-filter: blur(4px);
}

.dialog-close-form {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
}

.dialog-close {
  border-color: rgb(255 255 255 / 32%);
  color: #ffffff;
  background: rgb(255 255 255 / 10%);
}

.form-dialog-header {
  padding: 34px 72px 30px 34px;
  border-bottom: 5px solid var(--accent);
  color: #ffffff;
  background: var(--navy);
}

.form-dialog-header .meta {
  color: #aabbd4;
}

.form-dialog-header h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 26px;
}

.form-dialog-header p {
  margin: 0;
  color: #d5dcf1;
  font-size: 14px;
  line-height: 1.6;
}

.candidate-form {
  padding: 32px 34px 34px;
}

.form-field {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.required {
  margin-left: 6px;
  color: var(--danger);
}

.rating-options,
.nps-options {
  display: grid;
  gap: 8px;
}

.rating-options {
  grid-template-columns: repeat(5, minmax(40px, 1fr));
}

.nps-options {
  grid-template-columns: repeat(11, minmax(34px, 1fr));
}

.rating-options label,
.nps-options label {
  position: relative;
}

.rating-options input,
.nps-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options span,
.nps-options span {
  height: 44px;
  border: 1px solid #cbd2df;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.rating-options input:checked + span,
.nps-options input:checked + span {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.rating-labels {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  color: #8992a6;
  font-size: 10px;
}

.form-actions {
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.form-actions .primary-button {
  width: auto;
  min-width: 170px;
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 18px;
  border-left: 4px solid var(--success);
  border-radius: 4px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .auth-layout {
    grid-template-columns: 1fr 440px;
  }

  .auth-visual h1 {
    font-size: 40px;
  }

  .portal-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .candidate-summary dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .candidate-summary dl > div {
    border-bottom: 1px solid var(--line);
  }

  .candidate-summary dl > div:nth-child(2) {
    border-right: 0;
  }

  .candidate-summary dl > div:nth-child(3) {
    padding-left: 0;
    border-bottom: 0;
  }

  .candidate-summary dl > div:nth-child(4) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .auth-layout {
    display: block;
  }

  .auth-visual {
    min-height: 270px;
    background-position: center 44%;
  }

  .auth-visual::after {
    inset: auto 0 0;
    height: 5px;
    border: 0;
    background: var(--accent);
  }

  .auth-visual-content {
    min-height: 270px;
    padding: 28px 24px 32px;
  }

  .auth-logo-light {
    width: 164px;
  }

  .auth-visual h1 {
    max-width: 460px;
    font-size: 30px;
  }

  .auth-intro {
    display: none;
  }

  .auth-support {
    display: none;
  }

  .auth-panel {
    min-height: calc(100vh - 270px);
    padding: 42px 24px 56px;
  }

  .auth-panel h2 {
    font-size: 28px;
  }

  .portal-header {
    height: 64px;
    padding: 0 16px;
  }

  .portal-header img {
    width: 156px;
  }

  .portal-header-actions > span {
    display: none;
  }

  .welcome-band {
    min-height: 270px;
    background-position: 58% center;
  }

  .welcome-band-content {
    width: calc(100% - 32px);
  }

  .welcome-band h1 {
    max-width: 320px;
    font-size: 31px;
  }

  .welcome-band p:last-child {
    max-width: 330px;
    font-size: 14px;
  }

  .candidate-summary dl,
  .portal-content {
    width: calc(100% - 32px);
  }

  .candidate-summary dl {
    grid-template-columns: 1fr;
  }

  .candidate-summary dl > div,
  .candidate-summary dl > div:first-child,
  .candidate-summary dl > div:nth-child(3) {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .candidate-summary dl > div:last-child {
    border-bottom: 0;
  }

  .portal-content {
    padding: 42px 0 60px;
  }

  .section-heading {
    min-height: 0;
  }

  .action-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .action-card .secondary-button,
  .complete-label {
    width: 100%;
  }

  .portal-footer {
    min-height: 120px;
    padding: 26px 24px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .form-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 16px);
    margin: auto 0 0;
    border-radius: 6px 6px 0 0;
  }

  .form-dialog-header {
    padding: 30px 66px 26px 24px;
  }

  .form-dialog-header h2 {
    font-size: 23px;
  }

  .candidate-form {
    padding: 26px 24px 32px;
  }

  .nps-options {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
