:root {
  --ink: #102033;
  --navy: #102942;
  --navy-2: #163b58;
  --teal: #31a293;
  --teal-soft: #b8d8d5;
  --copper: #bd6b3a;
  --paper: #f4f1ea;
  --white: #ffffff;
  --muted: #6c7a84;
  --line: #d9dedf;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-shell {
  background:
    linear-gradient(90deg, rgba(12, 28, 45, 0.94) 0%, rgba(12, 28, 45, 0.78) 42%, rgba(12, 28, 45, 0.26) 72%, rgba(12, 28, 45, 0.08) 100%),
    url("/assets/expedite-hero.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
}

.logo {
  display: inline-flex;
}

.logo img {
  height: 50px;
  width: 208px;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.top-actions a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 760;
  min-height: 40px;
  padding: 10px 12px;
}

.top-actions a.primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
}

.login-main {
  align-items: center;
  display: grid;
  gap: clamp(26px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  padding: clamp(28px, 4vw, 58px) clamp(18px, 4vw, 56px) clamp(44px, 6vw, 76px);
}

.copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--teal-soft);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.copy h1 {
  font-size: clamp(42px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

.copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 640px;
}

.signal-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 720px;
}

.signal {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
}

.signal strong {
  color: #ffffff;
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.signal span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.login-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: 26px;
}

.panel-heading h2 {
  font-size: 28px;
  line-height: 1.08;
  margin: 0;
}

.panel-heading p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.status-note {
  background: #eef8f6;
  border: 1px solid #b6ddd8;
  border-radius: 8px;
  color: #174b43;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px;
}

.status-note.is-error {
  background: #fff3ee;
  border-color: #efc2ad;
  color: #7d351d;
}

.status-note.is-success {
  background: #eef8f6;
  border-color: #9bd6ce;
  color: #174b43;
}

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

.login-form label {
  color: #40505d;
  display: grid;
  font-size: 13px;
  font-weight: 780;
  gap: 7px;
}

.login-form input {
  background: #ffffff;
  border: 1px solid #bdc8ce;
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.login-form input:disabled {
  background: #f2f4f4;
  color: #7b858c;
}

.login-form button {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  min-height: 46px;
  padding: 0 16px;
}

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

.mfa-step[hidden] {
  display: none;
}

.mfa-enrollment {
  align-items: center;
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
}

.mfa-enrollment[hidden] {
  display: none;
}

.mfa-enrollment img {
  background: #ffffff;
  border: 1px solid #dce2e4;
  border-radius: 8px;
  height: 176px;
  padding: 8px;
  width: 176px;
}

.mfa-enrollment p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.panel-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  padding-top: 14px;
}

.panel-foot a {
  color: var(--navy-2);
  font-weight: 800;
}

.site-foot {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
}

.site-foot a {
  color: #ffffff;
  font-weight: 750;
}

@media (max-width: 920px) {
  .login-main {
    align-items: start;
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .login-panel {
    max-width: 520px;
    order: -1;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo img {
    height: 42px;
    width: 176px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .copy h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

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