:root {
  --sw-ink: #11161a;
  --sw-paper: #f4f3ef;
  --sw-white: #ffffff;
  --sw-line: #d8d7d1;
  --sw-muted: #697077;
  --sw-gold: #c7a14c;
  --sw-green: #27483f;
  --sw-danger: #9f2d2d;
  --ink: var(--sw-ink);
  --muted: var(--sw-muted);
  --paper: var(--sw-paper);
  --white: var(--sw-white);
  --line: var(--sw-line);
  --gold: var(--sw-gold);
  --green: var(--sw-green);
  --danger: var(--sw-danger);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: inherit; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
body, input, button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.auth-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(100% - 56px, 1320px);
  min-height: 86px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.22);
  color: #fff;
}
.auth-brand { display: inline-flex; align-items: center; gap: 12px; }
.auth-brand img { width: 44px; height: 44px; }
.auth-brand span { display: grid; }
.auth-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1; }
.auth-brand small { margin-top: 5px; color: var(--gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.auth-header nav { display: flex; align-items: center; gap: 22px; }
.auth-header nav a { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; }
.auth-header nav a:last-child { padding: 11px 16px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #121212; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); min-height: 100svh; }
.auth-story { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: flex-end; padding: 150px max(42px, calc((100vw - 1320px) / 2)) 74px; background: #0c1114; color: #fff; }
.auth-story > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% center; }
.auth-story::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,10,.32), rgba(5,8,10,.72)); content: ""; }
.auth-story > div { position: relative; z-index: 1; max-width: 720px; }
.auth-kicker { color: var(--gold); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.auth-story h1 { max-width: 680px; margin: 14px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5vw, 72px); line-height: 1.03; font-weight: 500; text-wrap: balance; }
.auth-story p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.65; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: rgba(255,255,255,.86); font-size: 13px; font-weight: 700; }
.auth-proof span::before { margin-right: 8px; color: var(--gold); content: "•"; }

.auth-panel { display: flex; min-width: 0; align-items: center; justify-content: center; padding: 110px 54px 60px; background: var(--white); }
.auth-panel-inner { width: min(100%, 430px); }
.auth-panel .auth-kicker { color: #8d6e2d; }
.auth-panel h2 { margin: 12px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1.1; font-weight: 500; }
.auth-panel-intro { margin: 0 0 30px; color: var(--muted); line-height: 1.6; }
.flash { margin-bottom: 18px; padding: 13px 14px; border: 1px solid; border-radius: 4px; font-size: 13px; line-height: 1.5; }
.flash.error { border-color: #dfb4b4; background: #fff4f4; color: var(--danger); }
.flash.ok { border-color: #b7d8c8; background: #eff8f3; color: #226148; }
.auth-form { display: grid; gap: 18px; }
.field-group { display: grid; gap: 7px; }
.field-group label { color: #42494e; font-size: 12px; font-weight: 800; }
.field-group input { width: 100%; height: 50px; padding: 0 13px; border: 1px solid #cfd1ce; border-radius: 4px; background: #fff; color: var(--ink); font-size: 15px; }
.field-group input:focus { border-color: #9f7e35; outline: 2px solid rgba(199,161,76,.18); }
.field-group input[aria-invalid="true"] { border-color: var(--danger); }
.field-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 78px; }
.password-wrap button { position: absolute; top: 3px; right: 3px; height: 44px; padding: 0 13px; border: 0; border-radius: 3px; background: #eef0ed; color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-mfa { border: 1px solid var(--line); border-radius: 4px; background: #fafaf8; }
.auth-mfa summary { padding: 14px 16px; color: #42494e; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-mfa summary small { display: block; margin: 3px 0 0 21px; color: var(--muted); font-weight: 600; }
.auth-mfa[open] summary { border-bottom: 1px solid var(--line); }
.auth-mfa > .field-group { padding: 16px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.login-row .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.login-row input { width: 17px; height: 17px; accent-color: var(--green); }
.login-row a { color: var(--ink); font-weight: 750; }
.submit { min-height: 54px; border: 0; border-radius: 4px; background: var(--gold); color: #151515; font-weight: 850; cursor: pointer; }
.submit:hover { background: #d3b15f; }
.submit:disabled { cursor: wait; opacity: .65; }
.auth-footnote { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-footer { display: none; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 48svh; padding: 130px 30px 54px; }
  .auth-panel { padding: 52px 28px 70px; }
  .auth-footer { display: none; }
}
@media (max-width: 620px) {
  .auth-header { width: calc(100% - 28px); min-height: 72px; }
  .auth-header nav a:not(:last-child) { display: none; }
  .auth-header nav a:last-child { padding: 9px 12px; }
  .auth-shell { display: flex; flex-direction: column; }
  .auth-story { min-height: 390px; order: 1; padding: 108px 20px 42px; }
  .auth-story > img { object-position: 70% center; }
  .auth-story h1 { font-size: 42px; }
  .auth-story p { font-size: 15px; }
  .auth-proof { display: grid; gap: 7px; }
  .auth-panel { order: 2; padding: 42px 20px 60px; }
  .auth-panel h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
