:root {
  --ink: #111b2c;
  --muted: #5d6675;
  --line: #d8dde5;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --navy: #132b4f;
  --violet: #6657d9;
  --green: #16855a;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; margin: 0; }

body {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  background:
    linear-gradient(90deg, rgba(19, 43, 79, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(19, 43, 79, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper);
}

.login-shell {
  width: min(1120px, 100%);
  min-height: min(680px, calc(100dvh - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(17, 27, 44, 0.14);
}

.login-context {
  min-width: 0;
  padding: clamp(30px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(102, 87, 217, 0.26) 62% 100%),
    var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  object-fit: contain;
  flex: none;
}

.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-size: 18px; }
.brand small { color: #bfcadd; }

.context-copy {
  max-width: 620px;
  margin: auto 0;
  padding: 56px 0;
}

.eyebrow {
  color: #9eaee8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 61px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

.context-copy p {
  max-width: 570px;
  margin: 0;
  color: #d5ddea;
  font-size: 17px;
  line-height: 1.65;
}

.protection-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.protection-facts div { padding: 18px 12px 0 0; }
.protection-facts dt { color: #9eacc1; font-size: 11px; text-transform: uppercase; }
.protection-facts dd { margin: 5px 0 0; font-size: 13px; font-weight: 750; }

.login-panel {
  align-self: center;
  padding: clamp(30px, 5vw, 64px);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.access-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--violet);
  border-radius: 4px;
  font-size: 23px;
}

.panel-heading .eyebrow { color: var(--violet); }
h2 { margin: 4px 0 0; font-size: 25px; line-height: 1.2; }

.login-error {
  margin: 0 0 22px;
  padding: 12px 14px;
  color: #8b221c;
  background: #fff0ef;
  border-left: 3px solid #ba362e;
  font-size: 14px;
}

form { display: grid; gap: 20px; }
label { display: grid; gap: 7px; }
label span { color: #343e4f; font-size: 13px; font-weight: 750; }

input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc6d0;
  border-radius: 4px;
  font: inherit;
  letter-spacing: 0;
}

input:focus-visible,
button:focus-visible,
a:focus-visible { outline: 3px solid rgba(102, 87, 217, 0.3); outline-offset: 2px; }

form button {
  height: 50px;
  margin-top: 4px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--violet);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

form button:hover { background: #5547c6; }

.access-note {
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.back-link { color: var(--navy); font-size: 13px; font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  body { padding: 0; place-items: stretch; }
  .login-shell { min-height: 100dvh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-context { min-height: 310px; }
  .context-copy { margin: 44px 0 30px; padding: 0; }
  h1 { font-size: 37px; }
  .protection-facts { display: none; }
  .login-panel { width: 100%; max-width: 560px; justify-self: center; }
}

@media (max-width: 460px) {
  .login-context,
  .login-panel { padding: 25px 20px; }
  .login-context { min-height: 280px; }
  .context-copy p { font-size: 14px; }
  h1 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
