:root {
  --navy: #193f70;
  --navy-deep: #112f54;
  --blue: #285c91;
  --gold: #f8c75e;
  --ink: #203652;
  --muted: #758294;
  --line: #e4e9ef;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: #e8edf3;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 30px;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(95, 150, 204, 0.2), transparent 28rem),
    linear-gradient(150deg, #edf1f6, #dce4ed);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
a,
input { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(248, 199, 94, 0.85);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.login-shell {
  width: min(920px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(21, 54, 95, 0.18);
}

.login-visual {
  position: relative;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(91, 151, 207, 0.3), transparent 20rem),
    linear-gradient(145deg, #193f70, #214f80);
}

.login-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  flex: none;
  place-items: center;
  color: #183b64;
  background: var(--gold);
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(8, 30, 57, 0.26);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.login-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-brand small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-brand strong {
  font-size: 15px;
  font-weight: 650;
}

.visual-copy {
  position: relative;
  z-index: 3;
  margin: auto 0;
  padding-bottom: 22px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #e4ad37;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-copy .eyebrow { color: #f8cf74; }

.visual-copy h1 {
  margin: 0 0 17px;
  font-size: clamp(37px, 5vw, 54px);
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.visual-copy > p:last-child {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 13px;
  line-height: 1.65;
}

.visual-status {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 650;
}

.visual-status i {
  width: 7px;
  height: 7px;
  background: #47db8e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(71, 219, 142, 0.12);
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.orbit-one {
  width: 400px;
  height: 400px;
  top: -240px;
  right: -190px;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.02), 0 0 0 110px rgba(255, 255, 255, 0.015);
}

.orbit-two {
  width: 270px;
  height: 270px;
  left: -180px;
  bottom: -100px;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.018);
}

.visual-grid {
  position: absolute;
  width: 330px;
  height: 180px;
  right: -70px;
  bottom: -28px;
  opacity: 0.06;
  background:
    repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 55px),
    repeating-linear-gradient(0deg, #fff 0 38px, transparent 38px 47px);
  transform: skewX(-13deg) rotate(-8deg);
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 50px;
  background: #fff;
}

.form-heading { margin-bottom: 25px; }

.lock-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: #285c91;
  background: #e8f0f8;
  border-radius: 14px;
}

.lock-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-heading h2 {
  margin: 0 0 8px;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.form-heading > p:last-child,
.form-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-error {
  margin: -7px 0 18px;
  padding: 11px 13px;
  color: #8b4c31;
  background: #fbede5;
  border: 1px solid #f5ddd0;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.4;
}

.login-form { display: grid; gap: 17px; }

.login-field > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.input-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap:focus-within {
  background: #fff;
  border-color: rgba(40, 92, 145, 0.4);
  box-shadow: 0 0 0 4px rgba(40, 92, 145, 0.07);
}

.input-wrap svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: #8a98a9;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrap input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  font-weight: 580;
}

.remember-field {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.remember-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-mark {
  width: 18px;
  height: 18px;
  display: grid;
  flex: none;
  place-items: center;
  background: #f3f6f9;
  border: 1px solid #dce3ea;
  border-radius: 6px;
}

.remember-field input:checked + .checkbox-mark {
  background: var(--gold);
  border-color: var(--gold);
}

.remember-field input:checked + .checkbox-mark::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-bottom: 2px solid #173b64;
  border-left: 2px solid #173b64;
  transform: rotate(-45deg);
}

.remember-field input:focus-visible + .checkbox-mark {
  outline: 3px solid rgba(248, 199, 94, 0.65);
  outline-offset: 3px;
}

.remember-field > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remember-field strong {
  font-size: 11px;
  font-weight: 700;
}

.remember-field small {
  color: var(--muted);
  font-size: 9px;
}

.login-button {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
  color: #183b64;
  background: var(--gold);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(201, 143, 27, 0.18);
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-button:hover {
  background: #ffd16d;
  box-shadow: 0 12px 27px rgba(201, 143, 27, 0.24);
  transform: translateY(-1px);
}

.login-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-footnote {
  margin-top: 24px;
  font-size: 9px;
}

@media (max-width: 760px) {
  body { padding: 0; background: #fff; }

  .login-shell {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
  }

  .login-visual {
    min-height: 290px;
    padding: 22px;
  }

  .visual-copy {
    margin: 42px 0 34px;
    padding: 0;
  }

  .visual-copy h1 {
    margin-bottom: 12px;
    font-size: 38px;
  }

  .visual-copy > p:last-child { max-width: 440px; }

  .login-form-panel { padding: 36px 24px 42px; }

  .lock-mark { display: none; }
}

@media (max-width: 420px) {
  .login-visual { min-height: 275px; }
  .login-brand strong { font-size: 14px; }
  .visual-copy { margin: 34px 0 28px; }
  .visual-copy h1 { font-size: 34px; }
  .visual-copy > p:last-child { font-size: 12px; }
  .login-form-panel { padding: 32px 20px 38px; }
  .form-heading h2 { font-size: 28px; }
}

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