:root {
  --navy: #081a37;
  --blue: #0754a2;
  --blue-2: #0872c9;
  --ink: #0a1d39;
  --muted: #68778d;
  --line: #d4dee9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #f1f5f9;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid #72b8f6;
  outline-offset: 4px;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(circle at 82% 12%, #dceaf8 0, transparent 30%),
    linear-gradient(135deg, #f7f9fc, #eef3f8);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(440px, 1.22fr);
  width: min(980px, 100%);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid #c9d5e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 32px 90px #0a1d3924;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 39px 35px;
  background:
    radial-gradient(circle at 10% 92%, #0c68b84f, transparent 42%),
    linear-gradient(145deg, #07172f, #0a2447);
  color: #fff;
}

.brand-panel::after {
  position: absolute;
  width: 330px;
  height: 330px;
  right: -142px;
  bottom: -119px;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  content: "";
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 .84rem/1 var(--serif);
  letter-spacing: .27em;
}

.brand-lockup img {
  width: 58px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.brand-copy p {
  margin: 0 0 18px;
  color: #91c7f5;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
}

.brand-copy h2 {
  max-width: 280px;
  margin: 0;
  font: 500 clamp(2.7rem, 4vw, 3.65rem)/.98 var(--serif);
  letter-spacing: -.045em;
}

.brand-foot {
  position: relative;
  z-index: 1;
  color: #afbed0;
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 54px 46px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  color: #67768a;
  font-size: .74rem;
}

.back-link:hover { color: var(--blue); }

.login-copy {
  width: min(100%, 440px);
  margin: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  font: 500 clamp(3.05rem, 5.4vw, 4.7rem)/.92 var(--serif);
  letter-spacing: -.055em;
}

#login-description {
  max-width: 400px;
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: .98rem;
}

.access-message {
  margin: -8px 0 20px;
  padding: 11px 13px;
  border-left: 3px solid #a74a4a;
  background: #fff5f5;
  color: #7c2e2e;
  font-size: .77rem;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #334861;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.login-form input {
  width: 100%;
  height: 54px;
  padding: 12px 14px;
  border: 1px solid #c9d6e4;
  border-radius: 5px;
  background: #fbfcfe;
  color: var(--ink);
  font: .95rem/1 var(--sans);
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.login-form input:hover {
  border-color: #91aec9;
  background: #fff;
}

.login-form input:focus {
  border-color: #1672c2;
  background: #fff;
  box-shadow: 0 0 0 4px #0871c912;
  outline: 0;
}

.signin-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  margin-top: 4px;
  padding: 14px 19px 14px 22px;
  border: 1px solid #0754a2;
  border-radius: 5px;
  background: linear-gradient(115deg, #064b90, #0873ca);
  box-shadow: 0 14px 30px #0754a229;
  color: #fff;
  font-family: var(--sans);
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.signin-button span:last-child {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #ffffff47;
  border-radius: 50%;
  font-size: 1.12rem;
}

.signin-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(115deg, #064485, #0669ba);
  box-shadow: 0 18px 36px #0754a233;
}

.security-note {
  margin: 17px 4px 0;
  color: #8290a1;
  font-size: .7rem;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .login-page { padding: 18px; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .brand-panel { min-height: 190px; padding: 25px 27px; }
  .brand-copy { margin: 34px 0 10px; }
  .brand-copy p { margin-bottom: 9px; }
  .brand-copy h2 { max-width: 470px; font-size: 2.35rem; }
  .brand-foot { display: none; }
  .login-content { min-height: 440px; padding: 26px 28px 38px; }
}

@media (max-width: 430px) {
  .login-page { padding: 0; background: #fff; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .brand-panel { min-height: 171px; }
  .brand-lockup img { width: 49px; height: 37px; }
  .brand-copy { margin-top: 28px; }
  .brand-copy h2 { font-size: 2rem; }
  .login-content { min-height: 430px; padding: 24px 23px 34px; }
  .login-copy { margin-top: auto; margin-bottom: auto; }
  h1 { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
