/* Geist (SIL OFL 1.1, Vercel) — self-hosted variable font, the same files as carblur.com. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Cabinet login / register / password reset — the look of the CarBlur WP plugin admin (user-coins style):
   dark gradient head with tabs, white card, PHPDEV tokens. Prototype: reports/cabinet-auth-2026-11-19/ (approved 2026-11-19). */
:root {
  --accent: #4d8dff;
  --accent-deep: #1b47a8;
  --good: #35d399;
  --bad: #e5484d;
  --ground: #04060a;
  --s2: #0e141d;
  --s3: #141b26;
  --ink: #dce3ee;
  --ink-soft: #98a3b4;
  --page: #eef1f5;
  --text: #1d2430;
  --muted: #5d6878;
  --line: #e3e7ee;
  --field: #d5dae3;
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 15px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); }

/* Top line: back to the site + language */
.top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 960px; margin: 0 auto; padding: 18px 20px;
  font-size: 14px;
}
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.back:hover { color: var(--text); }
.lang { margin: 0; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.lang button { padding: 4px 10px; border: 0; background: none; font-family: inherit; cursor: pointer; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.lang button.is-on { background: var(--ground); color: #fff; }

main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px 40px; }
.auth { width: 100%; max-width: 440px; }

/* Dark head: logo + wordmark, "by PHPDEV" */
.head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px 18px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(135deg, var(--ground), var(--s3));
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { display: block; width: 28px; height: auto; }
.by { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; text-decoration: none; transition: color .2s var(--ease); }
.by svg { display: block; height: 14px; width: auto; opacity: .85; }
.by:hover { color: var(--ink); }

/* Tabs — the plugin's pills on the dark strip */
.tabs { display: flex; gap: 2px; padding: 0 12px; background: var(--s2); }
.tab {
  display: block; text-decoration: none;
  padding: 12px 18px; border: 0; border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: none; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .055); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tab.is-active { color: var(--ground); background: #fff; }

/* White card */
.card {
  padding: 28px 28px 24px;
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r) var(--r);
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
.card h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.pane[hidden] { display: none; }

.field { margin-bottom: 16px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.field label a { font-weight: 500; font-size: 13px; text-decoration: none; }
.field label a:hover { text-decoration: underline; }
.input { position: relative; }
.input input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: var(--r-sm);
  background: #fff; color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 141, 255, .18); }
.input.has-eye input { padding-right: 46px; }
.eye {
  position: absolute; top: 0; right: 0; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--r-sm);
}
.eye:hover { color: var(--text); }
.eye:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }

.field.is-bad input { border-color: var(--bad); }
.field.is-bad input:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.err { margin: 6px 0 0; color: var(--bad); font-size: 13px; }
.alert { margin: 0 0 18px; padding: 11px 14px; border-radius: var(--r-sm); background: #fdecec; color: #a3262a; font-size: 14px; border: 1px solid #f6caca; }
.alert.ok { background: #e8f8f1; color: #116a48; border-color: #bfe9d6; }

.cf-turnstile { min-height: 65px; margin: 4px 0 18px; }
.btn {
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; width: 100%; height: 48px;
  border: 0; border-radius: var(--r-sm); background: var(--accent); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.btn:hover { background: #3b7cf0; }
.btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.terms { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.switch { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.switch button { padding: 0; border: 0; background: none; color: var(--accent-deep); font: inherit; font-weight: 600; cursor: pointer; }
.switch button:hover { text-decoration: underline; }
.switch a { font-weight: 600; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

footer { padding: 18px 16px 24px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 520px) {
  .top { padding: 14px 16px; }
  main { padding-top: 8px; }
  .head { padding: 16px 18px 14px; }
  .tabs { padding: 0 6px; }
  .tab { flex: 1; padding: 11px 10px; text-align: center; }
  .card { padding: 22px 18px 20px; }
}

/* Django form errors and messages */
.errorlist { margin: 6px 0 0; padding: 0; list-style: none; color: var(--bad); font-size: 13px; }
.alert-info, .alert-success { background: #e8f8f1; color: #116a48; border-color: #bfe9d6; }
.alert-warning { background: #fff6e5; color: #8a5a00; border-color: #f3dfb0; }
.text p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.btn-link { display: inline-block; margin-top: 4px; font-weight: 600; text-decoration: none; }
