:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --chrome: #17181a;
  --panel: #202123;
  --field: #101113;
  --border: #323438;
  --border-strong: #44474b;
  --text: #dedede;
  --text-strong: #f2f2f2;
  --muted: #85888d;
  --accent: #d6a449;
  --accent-soft: #5a4829;
  --danger: #d76464;
  --good: #70ad7d;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr); background: #0d0e10; }
.auth-brand-panel { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 48px; overflow: hidden; border-right: 1px solid #292b2f; background: linear-gradient(145deg, #151618 0%, #111214 64%, #0d0e10 100%); }
.auth-brand-panel::after { content: ""; position: absolute; width: 560px; height: 560px; right: -280px; bottom: -260px; border: 1px solid rgba(214,164,73,.16); transform: rotate(45deg); box-shadow: 0 0 0 72px rgba(214,164,73,.018), 0 0 0 144px rgba(214,164,73,.012); pointer-events: none; }
.auth-brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth-mark { width: 34px; height: 34px; display: grid; place-items: center; background: #d7d7d7; color: #111; font-weight: 900; font-size: 15px; letter-spacing: -.05em; }
.auth-brand-title { color: #e4e4e4; font-size: 13px; font-weight: 760; letter-spacing: .12em; }
.auth-brand-subtitle { margin-top: 4px; color: #72767b; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 620px; margin: 10vh 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.auth-brand-copy h1 { max-width: 620px; margin: 0; color: #eee; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; font-weight: 650; letter-spacing: -.035em; }
.lede { max-width: 560px; margin: 24px 0 0; color: #96999e; font-size: 14px; line-height: 1.65; }
.auth-brand-foot { position: relative; z-index: 1; color: #55595e; font-size: 10px; letter-spacing: .15em; }
.auth-form-panel { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 42px; background: radial-gradient(circle at 50% 44%, rgba(255,255,255,.025), transparent 34%); }
.auth-card { width: min(440px, 100%); padding: 28px; border: 1px solid var(--border); border-radius: 6px; background: #1b1c1e; box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.auth-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.auth-card-head .eyebrow { margin-bottom: 7px; }
.auth-card h2 { margin: 0; color: var(--text-strong); font-size: 25px; font-weight: 650; letter-spacing: -.02em; }
.service-badge { margin-top: 3px; padding: 5px 7px; border: 1px solid #484b50; border-radius: 3px; color: #8c9095; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.service-badge.ready { color: #9bc7a4; border-color: #3d5d44; background: #1b2920; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; border-bottom: 1px solid #34363a; }
.auth-tab { position: relative; height: 35px; border: 0; background: transparent; color: #777b80; font-size: 10px; font-weight: 800; letter-spacing: .12em; cursor: pointer; }
.auth-tab:hover { color: #d1d1d1; }
.auth-tab.active { color: #ececec; }
.auth-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.setup-notice { display: grid; gap: 5px; margin: 0 0 18px; padding: 12px 13px; border: 1px solid #5b4b2c; border-radius: 4px; background: #282217; color: #c9b082; font-size: 11px; line-height: 1.45; }
.setup-notice strong { color: #e0c27f; font-size: 11px; }
.auth-form { display: grid; gap: 9px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; }
.field-label { color: #73777c; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.auth-input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #35383c; border-radius: 3px; background: var(--field); color: #e8e8e8; outline: none; }
.auth-input::placeholder { color: #565a5f; }
.auth-input:hover { border-color: #44474b; }
.auth-input:focus { border-color: #7b653a; box-shadow: inset 0 0 0 1px rgba(214,164,73,.1); }
.text-button { padding: 0; border: 0; background: transparent; color: #8e7952; font-size: 9px; font-weight: 750; letter-spacing: .08em; cursor: pointer; }
.text-button:hover { color: #d7b66f; }
.primary-button, .secondary-button { width: 100%; height: 39px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.primary-button { margin-top: 7px; border: 1px solid #775f31; background: #594721; color: #f0d292; }
.primary-button:hover:not(:disabled) { background: #665128; border-color: #8c7040; }
.secondary-button { border: 1px solid #3a3d41; background: #242628; color: #b8bbbf; }
.secondary-button:hover:not(:disabled) { background: #2d2f32; color: #eee; }
.primary-button:disabled, .secondary-button:disabled { opacity: .42; cursor: default; }
.divider { display: flex; align-items: center; gap: 12px; color: #55595e; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #303236; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 5px 0 1px; color: #787c81; font-size: 10px; line-height: 1.45; }
.consent-row input { margin-top: 2px; accent-color: var(--accent); }
.form-copy { margin: 0 0 8px; color: #8d9195; font-size: 12px; line-height: 1.55; }
.auth-message { min-height: 17px; margin-top: 15px; color: #a0a4a9; font-size: 11px; line-height: 1.45; }
.auth-message.error { color: #dc8585; }
.auth-message.success { color: #82bc8e; }
.auth-form-foot { display: flex; gap: 8px; align-items: center; color: #5f6368; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.auth-form-foot a { color: #7f8388; text-decoration: none; }
.auth-form-foot a:hover { color: #d0d0d0; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: auto; padding: 24px 26px; border-right: 0; border-bottom: 1px solid #292b2f; }
  .auth-brand-copy { margin: 52px 0 28px; }
  .auth-brand-copy h1 { font-size: clamp(31px, 8vw, 48px); }
  .auth-brand-foot { display: none; }
  .auth-form-panel { min-height: auto; padding: 34px 22px 46px; }
}
