:root {
  --yellow: #f4c430;
  --navy: #111827;
  --navy-soft: #273449;
  --cream: #fff8e7;
  --paper: #fffdf7;
  --red: #cf392f;
  --blue: #155f8f;
  --border: #c8bda5;
  --muted: #6d665a;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
  color: var(--navy);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button,
input {
  font: inherit;
}

.login-layout {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.618fr)
    minmax(420px, 1fr);

  min-height: 100vh;
}

.identity-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;

  padding:
    clamp(1.5rem, 5vw, 4.25rem);

  border-right: 4px solid var(--navy);
  background: var(--yellow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border: 3px solid var(--navy);
  background: var(--navy);
  color: var(--yellow);

  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-product {
  margin: 0;
}

.brand-name {
  font-weight: 900;
}

.brand-product {
  margin-top: 0.15rem;
  color: var(--navy-soft);
  font-size: 0.78rem;
}

.identity-copy {
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 1rem;

  color: var(--navy-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-copy h1 {
  max-width: 11ch;
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(3rem, 7vw, 6.85rem);

  line-height: 0.9;
  letter-spacing: -0.055em;
}

.identity-copy > p:last-child {
  max-width: 43ch;
  margin: 2rem 0 0;

  color: var(--navy-soft);
  font-size: clamp(
    1rem,
    2vw,
    1.25rem
  );

  line-height: 1.55;
}

.identity-footer {
  margin: 0;

  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-panel {
  display: grid;
  place-items: center;

  padding:
    clamp(1.5rem, 7vw, 6rem);

  background: var(--cream);
}

.login-card {
  width: min(100%, 520px);
  padding:
    clamp(1.5rem, 5vw, 3.25rem);

  border: 3px solid var(--navy);
  background: var(--paper);
  box-shadow:
    12px 12px 0
    rgba(17, 24, 39, 0.14);
}

.card-number {
  margin: 0 0 1.25rem;

  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.login-card h2 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(
    2.1rem,
    5vw,
    3.25rem
  );

  line-height: 1;
  letter-spacing: -0.04em;
}

.login-card header > p:last-child {
  max-width: 42ch;
  margin: 1rem 0 0;

  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 0.55rem;
  margin-top: 2.6rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;

  border: 3px solid var(--navy);
  border-radius: 0;
  outline: none;

  background: var(--cream);
  color: var(--navy);
}

.field input:focus {
  border-color: var(--blue);
  box-shadow:
    5px 5px 0 var(--yellow);
}

.login-message {
  min-height: 1.5em;
  margin: 1rem 0;

  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

.login-message.error {
  color: var(--red);
}

.login-message.success {
  color: #237a57;
}

.login-card button {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;

  border: 3px solid var(--navy);
  border-radius: 0;

  background: var(--navy);
  color: var(--cream);

  font-weight: 900;
  cursor: pointer;
}

.login-card button:hover,
.login-card button:focus-visible {
  background: var(--blue);
}

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

.security-note {
  margin: 1rem 0 0;

  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

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

  .identity-panel {
    min-height: 42vh;
    border-right: 0;
    border-bottom: 4px solid var(--navy);
  }

  .identity-copy h1 {
    max-width: 12ch;
    font-size: clamp(
      2.8rem,
      13vw,
      5rem
    );
  }

  .identity-footer {
    display: none;
  }

  .form-panel {
    min-height: 58vh;
  }
}
