:root {
  --color-ink: #111827;
  --color-muted: #667085;
  --color-blue: #123f8c;
  --color-blue-dark: #082b63;
  --color-yellow: #f5c542;
  --color-red: #d92d20;
  --color-green: #027a48;
  --color-surface: #ffffff;
  --color-page: #f5f7fb;
  --color-border: #d9e2f2;
  --shadow: 0 20px 50px rgb(17 24 39 / 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 32px;
  padding: 48px 0;
}

.brand-panel,
.form-panel,
.status-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-panel {
  min-height: 560px;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--color-blue-dark), var(--color-blue));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border: 32px solid rgb(245 197 66 / 0.5);
  border-radius: 50%;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--color-yellow);
  color: var(--color-blue-dark);
  font-size: 30px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-panel h1,
.status-panel h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

.lede,
.status-panel p {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-row span {
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.form-panel {
  padding: 34px;
}

.form-heading {
  margin-bottom: 26px;
}

.form-heading .eyebrow,
.status-panel .eyebrow {
  color: var(--color-blue);
}

.form-heading h2 {
  margin: 0;
  font-size: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--color-ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgb(18 63 140 / 0.14);
}

input.is-invalid {
  border-color: var(--color-red);
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgb(217 45 32 / 0.35);
  color: var(--color-red);
  background: rgb(217 45 32 / 0.08);
  font-weight: 700;
}

.submit-button,
.text-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.submit-button:hover,
.text-link:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-panel {
  width: min(620px, 100%);
  padding: 38px;
}

.status-panel p {
  color: var(--color-muted);
  font-size: 17px;
}

.status-panel .text-link,
.status-panel .submit-button {
  width: auto;
  margin-top: 26px;
  padding: 0 22px;
}

.text-center {
  text-align: center;
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .brand-panel {
    min-height: auto;
    padding: 30px;
  }

  .brand-panel h1,
  .status-panel h1 {
    font-size: 36px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-panel,
  .brand-panel,
  .status-panel {
    padding: 22px;
  }

  .brand-panel h1,
  .status-panel h1 {
    font-size: 30px;
  }
}
