:root {
  --navy-900: #0f2247;
  --navy-800: #182f59;
  --navy-600: #274782;
  --navy-500: #2e5090;
  --steel-500: #6080a0;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --line: #e4e9f1;
  --line-strong: #d3dbe7;
  --text: #16223a;
  --text-2: #4a5874;
  --text-3: #7d8aa3;
  --bad: #c7362f;
  --bad-bg: #fdeceb;
  --badge-bg: #e8eef9;
  --focus: rgba(46, 80, 144, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1422;
    --surface: #141d30;
    --line: #243049;
    --line-strong: #32405e;
    --text: #e5eaf4;
    --text-2: #b1bdd4;
    --text-3: #8290ab;
    --bad: #f2716a;
    --bad-bg: rgba(242, 113, 106, .14);
    --badge-bg: rgba(134, 168, 234, .15);
    --focus: rgba(106, 143, 212, .3);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Onest", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }

.lg { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.lg-brand {
  position: relative; overflow: hidden; padding: 64px 56px; color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: radial-gradient(120% 90% at 0% 0%, #2e5090 0%, #1f3c70 45%, #0f2247 100%);
}
.lg-logo { width: 150px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.lg-logo img { width: 100%; display: block; }
.lg-brand h2 { margin: 12px 0 0; font-size: 34px; letter-spacing: -.01em; }
.lg-brand p { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.lg-brand ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lg-brand li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.lg-brand li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a9bdd3; flex: none; }
.lg-swoosh {
  position: absolute; left: -10%; right: -10%; bottom: 60px; height: 140px; border-radius: 50%;
  border-top: 3px solid rgba(169, 189, 211, .45); transform: rotate(-6deg); pointer-events: none;
}

.lg-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 18px; }
.lg-card {
  width: min(420px, 100%); padding: 32px 30px 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(16, 34, 71, .12);
  display: flex; flex-direction: column; gap: 14px;
}
.lg-card-logo { display: none; }
.lg-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 20px; background: var(--badge-bg); color: var(--navy-600);
  font-size: 12.5px; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .lg-badge { color: #b9cbec; } }
.lg-card h1 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.01em; }
.lg-sub { margin: -4px 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--text-3); }
.lg-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.lg-field input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 11px; font: inherit; font-size: 15px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); outline: none;
}
.lg-field input:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px var(--focus); }
.lg-pass { position: relative; display: block; }
.lg-pass input { padding-right: 96px; }
.lg-pass button {
  position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--navy-500); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.lg-pass button:hover { background: var(--badge-bg); }
.lg-error { padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; }
.lg-submit {
  height: 46px; margin-top: 4px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--navy-600); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(39, 71, 130, .3); transition: filter .15s;
}
.lg-submit:hover { filter: brightness(1.08); }
.lg-submit:disabled { opacity: .6; cursor: wait; }
.lg-foot { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--text-3); }
.lg-copy { margin: 0; font-size: 12px; color: var(--text-3); }

@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; }
  .lg-brand { display: none; }
  .lg-card-logo { display: block; width: 110px; margin: 0 auto 4px; }
  .lg-card-logo img { width: 100%; display: block; }
  .lg-card { padding: 26px 20px 22px; }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) {
  .lg-card-logo { padding: 6px 10px; border-radius: 10px; background: #fff; }
}
