:root {
  --actex-navy:      #02253B;
  --actex-blue:      #283C90;
  --actex-sky:       #BFDAF2;
  --actex-steel:     #81A5BF;
  --actex-teal:      #2C7D88;
  --actex-gold:      #FFCB05;
  --actex-charcoal:  #242424;
  --actex-dark-navy: #1F2E50;

  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--actex-charcoal);
  background-color: var(--actex-navy);
  line-height: 1.6;
}

/* WCAG 2.2 — 2.4.1 Bypass Blocks. Hidden until focused, then fully visible. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background-color: var(--actex-gold);
  color: var(--actex-navy);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  z-index: 100;
}

/* WCAG 2.2 — 2.4.11 Focus Not Obscured and 2.4.13 Focus Appearance.
   A thick offset outline stays visible against every background used here. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--actex-gold);
  outline-offset: 2px;
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 27rem;
  background-color: #FFFFFF;
  border: 1px solid var(--actex-sky);
  border-top: 4px solid var(--actex-blue);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(2, 37, 59, 0.12);
  padding: 2rem;
}

.auth-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--actex-blue);
  margin: 0 0 0.25rem;
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  color: #4A4A4A;
  font-size: 0.9375rem;
}

.auth-errors {
  border: 2px solid #A32D2D;
  border-radius: 4px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  background-color: #FCEBEB;
}

.auth-errors-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #7A1F1F;
}

.auth-errors-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #7A1F1F;
}

.field {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--actex-charcoal);
}

.field-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--actex-charcoal);
  border: 1px solid var(--actex-steel);
  border-radius: 4px;
  background-color: #FFFFFF;
}

.field-input:hover {
  border-color: var(--actex-blue);
}

.field-hint {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  /* 4.6:1 against white — clears the 4.5:1 body-text threshold. */
  color: #5A5A5A;
}

/* The whole label is the hit target, not just the 13px box. */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--actex-charcoal);
  cursor: pointer;
}

.field-check input[type="checkbox"] {
  /* Nudged down to sit on the first line's baseline rather than its box top. */
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.button-primary,
.button-secondary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6875rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  /* WCAG 2.2 — 2.5.8 Target Size, comfortably above the 24px minimum. */
  min-height: 2.75rem;
}

.button-primary {
  width: 100%;
  background-color: var(--actex-blue);
  color: #FFFFFF;
  border: 1px solid var(--actex-blue);
}

.button-primary:hover {
  background-color: var(--actex-navy);
  border-color: var(--actex-navy);
}

.button-secondary {
  background-color: #FFFFFF;
  color: var(--actex-blue);
  border: 1px solid var(--actex-blue);
}

.button-secondary:hover {
  background-color: var(--actex-sky);
}

.auth-footnote {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--actex-sky);
  font-size: 0.8125rem;
  color: #5A5A5A;
}

.auth-footnote code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background-color: #F1F4F8;
  padding: 0.0625rem 0.25rem;
  border-radius: 3px;
  color: var(--actex-dark-navy);
}
