:root { color-scheme: dark; --surface: oklch(20% .01 240); --text: oklch(96% .008 85);
  --muted: oklch(72% .014 230); --border: oklch(39% .013 240); --gold: oklch(81% .1 83); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); min-height: 100svh; -webkit-font-smoothing: antialiased; }
.login-scene { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: 44px 52px; }
.login-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.login-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #14232970, #14232908 30%, #101d27c9 75%, #101d27ed); }
.login-brand, .login-story, .login-scene-foot { position: relative; z-index: 1; }
.login-brand { display: flex; gap: 13px; align-items: center; text-decoration: none; color: #fcfaf2; width: fit-content;
  font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.login-brand img { object-fit: contain; }
.login-brand small { display: block; font-size: 11px; color: #e3e7e4; font-weight: 400; margin-top: 3px; letter-spacing: .01em; }
.login-story { margin-top: auto; padding-top: 120px; padding-bottom: 72px; }
.login-eyebrow { display: block; color: #e4c994; font: 10px 'JetBrains Mono', monospace; letter-spacing: .05em; margin-bottom: 26px; }
h1 { font-size: clamp(36px, 3.4vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin: 0 0 22px; color: #f8f5ed; }
.login-story p { font-size: 15px; line-height: 1.7; color: #e0e3df; margin: 0; }
.login-scene-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid #e4e9e130; color: #c6cecd; font-size: 10px; }
.login-scene-foot span:last-child { letter-spacing: .13em; font-size: 9px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 64px; position: relative; min-width: 0; }
.login-form { width: 100%; max-width: 354px; margin: auto; padding: 50px 0 80px; }
.login-step { font: 10px 'JetBrains Mono', monospace; letter-spacing: .08em; color: var(--gold); }
h2 { font-size: 32px; font-weight: 500; letter-spacing: -.035em; margin: 18px 0 10px; }
.login-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 35px; }
label { display: block; font-size: 12px; font-weight: 500; margin: 21px 0 9px; color: #dce1df; }
input { display: block; width: 100%; height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  background: oklch(24% .012 240); color: var(--text); font: 14px 'IBM Plex Sans', sans-serif; }
input::placeholder { color: oklch(63% .015 230); }
input:hover { border-color: oklch(54% .016 240); }
input:focus { border-color: var(--gold); outline: 3px solid oklch(81% .1 83 / .15); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 3px; top: 3px; width: 42px; height: 42px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); border-radius: 4px; }
.password-toggle:hover { color: var(--text); }
.password-toggle svg { width: 18px; height: 18px; stroke-width: 1.7; }
.login-submit { margin-top: 28px; width: 100%; height: 48px; border: 1px solid var(--gold); border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 17px; background: var(--gold); color: oklch(22% .023 70);
  font: 500 14px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.login-submit:hover { background: oklch(87% .1 83); }
.login-submit svg { width: 19px; height: 19px; stroke-width: 1.8; }
.login-submit:disabled { opacity: .7; cursor: wait; }
.login-help { margin: 27px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.login-error { color: #ffc5bc; background: #60362f55; border: 1px solid #87594f; padding: 12px 14px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.caps-hint { font-size: 12px; color: var(--gold); margin: 8px 0 0; }
@media (min-width: 1600px) { .login-scene { padding: 52px 72px; } .login-story { padding-bottom: 90px; } }
@media (max-width: 1100px) { .login-scene { padding: 32px; } .login-panel { padding: 40px; } h1 { font-size: 39px; } }
@media (max-width: 760px) {
  body { display: block; }
  .login-scene { min-height: 280px; padding: 24px; }
  .login-landscape { object-position: center 54%; }
  .login-brand { font-size: 16px; }
  .login-brand img { width: 34px; height: 34px; }
  .login-story { padding: 40px 0 0; }
  .login-eyebrow { display: none; }
  h1 { font-size: 30px; margin-bottom: 14px; }
  .login-story p, .login-scene-foot { display: none; }
  .login-panel { padding: 36px 26px 24px; min-height: calc(100svh - 280px); }
  .login-form { padding: 0 0 40px; max-width: 440px; }
  .login-step { font-size: 9px; }
  h2 { font-size: 28px; margin-top: 14px; }
  .login-subtitle { margin-bottom: 25px; }
  input { font-size: 16px; }
  .login-footer { font-size: 9px; }
}
