:root {
  --paper: #f1eee5;
  --ink: #10131a;
  --blue: #2142ff;
  --line: rgba(16, 19, 26, 0.18);
  --muted: #66685f;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 34px 42px 30px;
  overflow: hidden;
  color: #f7f4eb;
  background: var(--ink);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom right, black, transparent 76%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 40vw;
  aspect-ratio: 1;
  right: -17vw;
  top: 12vh;
  border: clamp(56px, 7vw, 110px) solid var(--blue);
  border-radius: 50%;
}

.brand-topline,
.brand-copy,
.brand-footer { position: relative; z-index: 1; }

.brand-topline,
.brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status { display: flex; align-items: center; gap: 8px; }
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7ff2a;
  box-shadow: 0 0 0 4px rgba(183,255,42,.12);
}

.brand-copy { max-width: 760px; margin: auto 0; padding: 72px 0; }
.kicker,
.overline {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(78px, 11vw, 184px);
  font-weight: 400;
  line-height: .74;
  letter-spacing: -.085em;
}

.brand-copy h1 span { color: var(--blue); }
.brand-note {
  max-width: 390px;
  margin: 44px 0 0;
  color: rgba(247,244,235,.65);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.5;
}

.brand-footer { justify-content: flex-start; gap: 30px; color: rgba(247,244,235,.46); }

.login-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 36px clamp(30px, 6vw, 90px);
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--line) calc(100% - 1px)) 0 0 / 25% 100%,
    var(--paper);
}

.login-wrap {
  position: relative;
  width: min(100%, 470px);
  margin: auto;
  padding: 70px 0 30px;
}

.edition {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.overline { color: var(--blue); }
.login-wrap h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.intro {
  max-width: 390px;
  margin: 24px 0 42px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.error {
  margin: -18px 0 26px;
  padding: 12px 14px;
  border-left: 3px solid #d63230;
  background: rgba(214,50,48,.08);
  color: #9c1717;
  font-size: 13px;
}

form { display: grid; gap: 24px; }
.field { display: grid; gap: 9px; }
label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

input {
  width: 100%;
  height: 54px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 18px Georgia, 'Times New Roman', serif;
}

input:focus-visible { border-bottom: 3px solid var(--blue); }
input[aria-invalid="true"] { border-bottom-color: #d63230; }

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font: 700 12px Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

button:hover { color: var(--ink); background: var(--paper); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.security-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.security-note span { color: #2c8b57; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 42vh; padding: 24px; }
  .brand-panel::after { width: 70vw; right: -30vw; top: 4vh; border-width: 54px; }
  .brand-copy { padding: 52px 0 28px; }
  .brand-copy h1 { font-size: clamp(66px, 20vw, 120px); }
  .brand-note { margin-top: 28px; }
  .brand-footer { display: none; }
  .login-panel { min-height: 58vh; padding: 52px 24px; }
  .login-wrap { padding-top: 38px; }
}

@media (max-width: 520px) {
  .brand-panel { min-height: 36vh; }
  .brand-copy { padding-bottom: 8px; }
  .brand-note { display: none; }
  .brand-topline .status { display: none; }
  .login-panel { min-height: 64vh; }
  .edition { top: -2px; }
}

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