:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6fa;
  color: #171c2d;
}

* { box-sizing: border-box; }

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

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, .92fr);
  min-height: 100dvh;
}

.brand-panel {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 3rem;
  background: #222358;
  color: #fff;
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgb(255 255 255 / 14%);
  transform: rotate(-16deg);
}

.brand-panel::before {
  width: 34rem;
  height: 34rem;
  top: -18rem;
  left: -11rem;
}

.brand-panel::after {
  width: 26rem;
  height: 26rem;
  right: -13rem;
  bottom: -14rem;
}

.brand-panel img {
  position: relative;
  z-index: 1;
  width: min(22rem, 68vw);
  height: auto;
}

.brand-copy {
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
  text-align: center;
}

.brand-copy span {
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy p {
  margin: .45rem 0 0;
  color: rgb(255 255 255 / 76%);
}

.entry-panel {
  display: grid;
  align-items: center;
  padding: clamp(2rem, 7vw, 7rem);
  background: #fff;
}

.entry-content {
  max-width: 28rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #e32636;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #1b2140;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.intro {
  margin: 1.25rem 0 2rem;
  color: #566077;
  font-size: 1rem;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: .7rem;
}

.login-form label {
  color: #1b2140;
  font-size: .875rem;
  font-weight: 700;
}

.login-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .8rem;
  border: 1px solid #aeb6c5;
  border-radius: 6px;
  background: #fff;
  color: #171c2d;
  font: inherit;
}

.login-form input[readonly] { background: #f4f6fa; }
.login-form input[aria-invalid="true"] { border-color: #e32636; background: #fff1f2; }

.login-form input:focus-visible {
  outline: 3px solid #1f5eff;
  outline-offset: 1px;
  border-color: #1f5eff;
}

.login-form .primary-action { margin-top: .65rem; justify-self: start; }
.primary-action:disabled { cursor: wait; opacity: .7; }

.form-error {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-left: 4px solid #e32636;
  background: #fff1f2;
  color: #80111d;
  line-height: 1.45;
}

.delay-message {
  min-height: 1.25rem;
  margin: 0;
  color: #566077;
  font-size: .875rem;
}

.field-message {
  min-height: 1.25rem;
  margin: -.2rem 0 0;
  color: #80111d;
  font-size: .875rem;
  line-height: 1.45;
}

.support a, .support-button { color: #344e9e; }
.support a:focus-visible, .support-button:focus-visible { outline: 3px solid #1f5eff; outline-offset: 2px; }

.support-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.support-dialog {
  width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #171c2d;
}

.support-dialog::backdrop { background: rgb(23 28 45 / 56%); }

.support-dialog-content { padding: 1.5rem; }
.support-dialog h2 { margin: 0 0 1rem; color: #1b2140; font-size: 1.35rem; }
.support-dialog p, .support-dialog li { line-height: 1.5; }
.support-dialog ul { padding-left: 1.25rem; }
.support-dialog a { color: #344e9e; }

.secondary-action {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid #566077;
  border-radius: 6px;
  background: #fff;
  color: #1b2140;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action:focus-visible { outline: 3px solid #1f5eff; outline-offset: 3px; }

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border: 1px solid #e32636;
  border-radius: 6px;
  background: #e32636;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-action:hover { background: #c91e2d; border-color: #c91e2d; }
.primary-action:active { transform: translateY(1px); }
.primary-action:focus-visible { outline: 3px solid #1f5eff; outline-offset: 3px; }

.support {
  margin: 1.5rem 0 0;
  color: #677187;
  font-size: .875rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 16rem; padding: 1rem; }
  .brand-panel img { width: 10rem; }
  .brand-copy { margin-top: .5rem; }
  .brand-copy p { font-size: .875rem; }
  .entry-panel { min-height: calc(100dvh - 16rem); padding: 2rem 1.5rem 3rem; }
}

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