/* RedData — tema alinhado ao site institucional (reddata.redmaxx.com.br).
   Muda só tipografia, cores de cromo, cantos e a tela de entrada.
   As cores das séries dos gráficos (tokens.css) continuam as validadas para daltonismo. */
@font-face{font-family:"Inter";src:url("../vendor/fonts/inter-latin-wght.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";src:url("../vendor/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}

:root{
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-display:"Plus Jakarta Sans","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  /* fundo e textos do site; o vermelho do produto continua #CE343D (regra do projeto) */
  --ink:#121212;--muted:#5f6672;--line:#e4e4e7;--bg:#f8f8f9;
  font-family:var(--font);
}
:root,[data-reddata-theme="light"]{--page:#f8f8f9;--r-control:8px;--r-card:14px;--r-panel:16px}

h1,h2,h3,.page-head h1,.auth-brand h1,.auth-inner h1{font-family:var(--font-display);letter-spacing:-.02em}
button,input,select,textarea{border-radius:8px}

/* Entrada: mesma composição de antes, com a cara do site (fundo claro, título em duas cores). */
.auth{background:#ffffff}
.auth-brand{background:var(--bg);color:var(--ink);border-right:1px solid var(--line)}
.auth-brand .auth-logo{content:url("../reddata-logo.png")}
.auth-brand h1{color:var(--ink);font-weight:700;letter-spacing:-.03em}
.auth-brand h1 .accent{color:var(--red)}
.auth-brand p{color:var(--muted)}
.auth-line{color:var(--muted);border-top-color:var(--line)}
.auth-inner small{color:var(--red-text);letter-spacing:.08em;font-weight:600}

/* Link de volta ao site, só quando o app roda dentro do site (ex.: /bi). */
.site-back{font-size:13px;color:var(--muted);text-decoration:none;white-space:nowrap}
.site-back:hover{color:var(--red-text)}
.auth-site-back{display:block;margin-bottom:20px}

@media (prefers-color-scheme:dark){
  html:not([data-theme=light]) .auth{background:#141414}
  html:not([data-theme=light]) .auth-brand{background:#1b1b1b;color:#e6e6e6;border-right-color:#2c2c2c}
  html:not([data-theme=light]) .auth-brand .auth-logo{content:url("../reddata-logo-white.png")}
  html:not([data-theme=light]) .auth-brand h1{color:#e6e6e6}
}
html[data-theme=dark] .auth{background:#141414}
html[data-theme=dark] .auth-brand{background:#1b1b1b;color:#e6e6e6;border-right-color:#2c2c2c}
html[data-theme=dark] .auth-brand .auth-logo{content:url("../reddata-logo-white.png")}
html[data-theme=dark] .auth-brand h1{color:#e6e6e6}
