:root { color-scheme: dark; --auth-bg:#061117; --auth-panel:#0b1b23; --auth-panel-2:#0e222c; --auth-line:#29404d; --auth-text:#f7f5f2; --auth-muted:#a8b7c4; --auth-orange:#ff7417; --auth-red:#ff8d86; }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--auth-bg); }
body.account-auth { min-height: 100vh; margin: 0; color: var(--auth-text); background-color: var(--auth-bg); background-image: linear-gradient(90deg,rgba(5,17,23,.82),rgba(5,17,23,.94)),url('../img/nommad-city-map-bg-v2.png'); background-size: cover; background-position: center; background-attachment: fixed; font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; line-height: 1.45; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; letter-spacing: 0; }
.account-auth-header { width: min(100% - 64px,1480px); height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.account-auth-header img { width: 170px; max-height: 70px; object-fit: contain; }
.account-auth-header > a:last-child { display: grid; font-weight: 800; }
.account-auth-header small { color: var(--auth-muted); font-size: 11px; font-weight: 500; }
.account-auth-layout { width: min(100% - 64px,1380px); min-height: calc(100vh - 116px); margin: 0 auto; padding: 18px 0 46px; display: grid; grid-template-columns: minmax(420px,.95fr) minmax(520px,.8fr); align-items: center; gap: clamp(50px,7vw,120px); }
.account-auth-story { max-width: 610px; }
.account-auth-kicker,.account-auth-panel-head > span { display: block; margin-bottom: 12px; color: var(--auth-orange); font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.account-auth-story h1 { margin: 0; font-size: clamp(44px,5vw,68px); line-height: .98; }
.account-auth-story h1 strong { color: var(--auth-orange); }
.account-auth-story > p { max-width: 590px; margin: 24px 0; color: #d7e0e7; font-size: 18px; }
.account-auth-benefits { display: grid; gap: 16px; margin: 30px 0; }
.account-auth-benefits > div { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 14px; }
.account-auth-benefits b { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #7c411b; border-radius: 6px; color: var(--auth-orange); }
.account-auth-benefits span { display: grid; gap: 3px; }
.account-auth-benefits small { color: var(--auth-muted); }
.account-auth-story blockquote { width: 270px; margin: 28px 0 0; padding: 18px 22px; border: 1px solid var(--auth-line); border-radius: 6px; background: rgba(8,23,30,.88); font: italic 21px Georgia,serif; }
.account-auth-story blockquote small { display: block; margin-top: 7px; color: var(--auth-muted); font: 10px Inter,sans-serif; text-transform: uppercase; }
.account-auth-panel { width: 100%; padding: 24px 30px 26px; border: 1px solid var(--auth-line); border-radius: 8px; background: rgba(8,25,33,.97); box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.account-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border: 1px solid var(--auth-line); border-radius: 6px; overflow: hidden; }
.account-auth-tabs a { min-height: 58px; display: grid; place-items: center; border-bottom: 3px solid transparent; color: #d3dee6; font-size: 16px; font-weight: 800; }
.account-auth-tabs a[aria-current="page"] { border-color: var(--auth-orange); background: #0e232d; color: var(--auth-orange); }
.account-auth-panel-head { margin-bottom: 15px; }
.account-auth-panel-head > span { margin-bottom: 4px; font-size: 10px; }
.account-auth-panel-head h2 { margin: 0; font-size: 25px; }
.account-auth-message { margin: 12px 0; padding: 12px 14px; border: 1px solid #8d3836; border-radius: 6px; background: #3b2020; color: var(--auth-red); font-weight: 800; }
.account-auth-message.success { border-color: #1d724c; background: #143426; color: #83eab1; }
.account-auth-google { width: 100%; min-height: 50px; display: flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid #8a8f91; border-radius: 6px; background: #fff; color: #151515; font-weight: 800; }
.account-auth-google:hover { background: #f5f7f8; }
.account-auth-divider { margin: 18px 0; display: flex; align-items: center; gap: 12px; color: var(--auth-muted); font-size: 12px; }
.account-auth-divider::before,.account-auth-divider::after { content:""; height: 1px; flex: 1; background: var(--auth-line); }
.account-auth-form { display: grid; gap: 14px; }
.account-auth-form > label,.account-auth-field { display: grid; gap: 7px; font-weight: 800; }
.account-auth-form input,.account-auth-form select { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid #38505d; border-radius: 6px; outline: 0; background: #08151b; color: var(--auth-text); }
.account-auth-form input:focus,.account-auth-form select:focus { border-color: var(--auth-orange); box-shadow: 0 0 0 3px rgba(255,116,23,.14); }
.account-auth-password { position: relative; }
.account-auth-password input { padding-right: 68px; }
.account-auth-password button { position: absolute; right: 8px; bottom: 8px; min-width: 50px; height: 34px; border: 0; background: transparent; color: var(--auth-muted); cursor: pointer; font-weight: 800; }
.account-auth-submit { min-height: 52px; border: 1px solid var(--auth-orange); border-radius: 6px; background: var(--auth-orange); color: #17100b; cursor: pointer; font-weight: 900; }
.account-auth-submit:hover { background: #ff8a3d; }
.account-auth-submit:disabled { opacity: .68; cursor: wait; }
.account-auth-secondary { min-height: 48px; display: grid; place-items: center; border: 1px solid var(--auth-line); border-radius: 6px; font-weight: 800; }
.account-auth-secondary:hover { border-color: var(--auth-orange); color: var(--auth-orange); }
.account-auth-create { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--auth-line); }
.account-auth-create > strong { display: block; }
.account-auth-create > p { margin: 3px 0 12px; color: var(--auth-muted); font-size: 12px; }
.account-auth-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-auth-role-grid a { min-height: 66px; padding: 10px; display: grid; align-content: center; border: 1px solid var(--auth-line); border-radius: 6px; }
.account-auth-role-grid a:hover,.account-auth-role-grid a[aria-current="page"] { border-color: var(--auth-orange); background: #251b15; }
.account-auth-role-grid small { color: var(--auth-muted); }
.account-auth-terms { grid-template-columns: 20px 1fr; align-items: start; font-size: 12px; font-weight: 500 !important; }
.account-auth-terms input { min-height: 18px; height: 18px; padding: 0; accent-color: var(--auth-orange); }
.account-auth-terms a,.account-auth-legal a { color: var(--auth-orange); text-decoration: underline; }
.account-auth-legal { margin: 18px 0 0; color: var(--auth-muted); font-size: 10px; text-align: center; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.78); }
.modal-card { width: min(480px,100%); padding: 22px; border: 1px solid var(--auth-line); border-radius: 8px; background: var(--auth-panel); }
.modal-heading { display: flex; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 0; }
.modal-heading .eyebrow { margin: 0; color: var(--auth-orange); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.modal-close { border: 0; background: transparent; color: var(--auth-text); font-size: 28px; cursor: pointer; }
.stacked-form { display: grid; gap: 12px; }
.stacked-form label { display: grid; gap: 6px; font-weight: 800; }
.stacked-form input { min-height: 48px; padding: 10px; border: 1px solid var(--auth-line); border-radius: 6px; background: #07141a; color: var(--auth-text); }
.auth-two-factor-actions { display: flex; justify-content: flex-end; gap: 9px; }
.btn { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--auth-line); border-radius: 6px; background: transparent; color: var(--auth-text); font-weight: 800; }
.btn-primary { border-color: var(--auth-orange); background: var(--auth-orange); color: #17100b; }

@media (max-width: 900px) {
  .account-auth-header { width: min(100% - 32px,700px); height: 74px; }
  .account-auth-header img { width: 138px; }
  .account-auth-header > a:last-child small { display: none; }
  .account-auth-layout { width: min(100% - 32px,620px); min-height: 0; padding: 10px 0 34px; display: block; }
  .account-auth-story { display: none; }
  .account-auth-panel { padding: 20px; }
}
@media (max-width: 520px) {
  .account-auth-header { width: calc(100% - 24px); }
  .account-auth-header > a:last-child { font-size: 12px; }
  .account-auth-layout { width: calc(100% - 24px); padding-top: 4px; }
  .account-auth-panel { padding: 15px; }
  .account-auth-tabs a { min-height: 50px; font-size: 14px; }
  .account-auth-role-grid { grid-template-columns: 1fr; }
}
