/* Identidade compartilhada: varejo de tecnologia. */
:root {
  color-scheme: dark;
  --ink: #edf3ff;
  --accent: #8caaff;
  --muted: #a1aec6;
  --line: #28354d;
  --paper: #080e1a;
  --surface: #111b2d;
  --scroll-track: #0c1525;
  --scroll-thumb: #526fa8;
  --scroll-thumb-hover: #7895d6;
  --scroll-end: #6255a2;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
/* Chrome, Edge e Safari: trilho escuro e alça arredondada nas cores da marca. */
@supports selector(::-webkit-scrollbar) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 999px; }
  ::-webkit-scrollbar-thumb { min-height: 36px; min-width: 36px; border: 3px solid var(--scroll-track); border-radius: 999px; background: linear-gradient(180deg, var(--scroll-thumb), var(--scroll-end)); background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:horizontal { background-image: linear-gradient(90deg, var(--scroll-thumb), var(--scroll-end)); }
  ::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: padding-box; }
  ::-webkit-scrollbar-corner { background: var(--scroll-track); }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
@media (forced-colors: active) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: Canvas; }
  ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: ButtonText; border-color: Canvas; }
}
body { margin: 0; background: radial-gradient(ellipse at 10% 25%, #17326355, transparent 55%), radial-gradient(ellipse at 95% 80%, #39277933, transparent 50%), var(--paper); color: var(--ink); font: 15px 'Segoe UI', Arial, sans-serif; }
header { max-width: 1240px; padding: 30px 48px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; color: var(--ink); font-size: 29px; font-weight: 750; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.brand-dot { color: var(--accent); margin-left: -9px; }
.brand-icon { display: grid; place-items: center; background: linear-gradient(135deg, #4478ff, #8154e8); color: white; border: 1px solid #a1b6ff66; border-radius: 11px; width: 37px; height: 39px; font-size: 28px; box-shadow: 0 0 30px #4578ff25; }
.header-note { color: var(--muted); font-size: 12px; }
main { max-width: 1180px; padding: 38px 48px 60px; margin: auto; min-height: calc(100vh - 160px); }
.auth-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 75px; align-items: center; min-height: 570px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 750; color: var(--accent); }
h1 { font-size: 49px; line-height: 1.12; letter-spacing: -2px; margin: 24px 0; }
h1 span { color: var(--accent); }
.intro > p { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 440px; }
.intro-detail { display: flex; gap: 15px; margin-top: 25px; align-items: flex-start; }
.detail-icon { display: inline-flex; align-items: center; justify-content: center; background: #182944; border: 1px solid #344b73; color: var(--accent); width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; font-weight: 700; }
.intro-detail strong { font-size: 14px; }
.intro-detail p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 5px 0; }
.intro-caption { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); margin-top: 32px; }
.card { background: linear-gradient(145deg, #152138, var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 37px; box-shadow: 0 24px 70px #0004; }
.card h2 { font-size: 26px; letter-spacing: -.8px; margin: 15px 0 10px; }
.muted { color: var(--muted); line-height: 1.7; }
.card > .muted { font-size: 13px; margin-bottom: 28px; }
.field { margin: 19px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field input { width: 100%; border: 1px solid #35435d; background: #0c1525; padding: 13px 14px; border-radius: 8px; font: inherit; color: var(--ink); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
small { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 7px; }
button { font: inherit; background: #426ce4; color: white; border: 1px solid #668bf2; border-radius: 9px; padding: 14px 18px; cursor: pointer; font-size: 13px; font-weight: 650; width: 100%; display: flex; justify-content: space-between; gap: 30px; }
button:hover { background: #355bcc; }
/* O botão fica dentro da área do campo, com espaço reservado para o texto. */
.password-field { position: relative; }
.password-field input { display: block; padding-right: 54px; }
.password-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; gap: 0; width: 44px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.password-toggle svg { display: block; flex-shrink: 0; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #1b2c49; color: var(--ink); }
.password-toggle .password-icon-hide,
.password-toggle.is-visible .password-icon-show { display: none; }
.password-toggle.is-visible .password-icon-hide { display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #b6c9ff; outline-offset: 4px; }
.card-bottom { font-size: 12px; text-align: center; margin-top: 25px; line-height: 1.8; }
.card-bottom a { font-weight: 650; }
.secure-note { text-align: center; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin: 22px 0 0; }
.errorlist { padding: 10px 14px 10px 30px; margin: 8px 0; border: 1px solid #b94b55; border-radius: 8px; background: #391820; color: #ffc2c7; font-size: 12px; line-height: 1.6; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ed7a84; }
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { outline-color: #ed7a84; }
.registration { align-items: start; }
.registration .intro { padding-top: 35px; }
.registration h1 { font-size: 45px; }
.registration .field { margin: 14px 0; }
footer { text-align: center; font-size: 11px; color: var(--muted); padding: 22px; }
.workspace { max-width: 900px; margin: 20px auto; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; }
.workspace-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 32px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.workspace-nav a { text-decoration: none; padding: 10px 16px; border-radius: 8px; color: var(--muted); }
.workspace-nav a:hover, .workspace-nav a[aria-current="page"] { color: var(--ink); background: #223454; }
.settings-card { max-width: 650px; margin-top: 26px; }
.field select { width: 100%; border: 1px solid #35435d; background: #0c1525; padding: 13px 14px; border-radius: 8px; font: inherit; color: var(--ink); }
.field select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.notice { background: #182944; border: 1px solid #344b73; border-radius: 10px; padding: 16px; color: #d4e0ff; font-size: 13px; line-height: 1.7; }
.notice p { margin-bottom: 0; }
.notice.success { background: #103529; border-color: #388b64; color: #adf0cc; }
.notice.error { background: #391820; border-color: #b94b55; color: #ffc2c7; }
.login-countdown strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.login-body [data-login-submit]:disabled { opacity: .55; cursor: not-allowed; }
.dismissible-message { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.dismissible-message > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.message-close { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; gap: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: transparent; color: inherit; font-size: 18px; font-weight: 400; line-height: 1; }
.message-close[hidden] { display: none; }
.message-close:hover { background: #ffffff18; }
.team-list { margin-top: 28px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td { overflow-wrap: anywhere; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; font-size: 13px; }
.pagination-form { display: flex; margin: 0; }
.pagination .pagination-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 110px; min-height: 44px; padding: 10px 14px; border-color: #3c5075; background: #1b2c48; color: #b5cbff; }
.pagination .pagination-button:hover:not(:disabled) { background: #29416a; border-color: #698ed3; color: var(--ink); }
.pagination .pagination-button:disabled { opacity: .4; cursor: default; }
.pagination-status { color: var(--muted); text-align: center; }
.secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--line); width: auto; }
.secondary:hover { background: #1b2c49; }
.company-card { display: flex; gap: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 26px; margin-top: 35px; }
.company-card h2 { margin: 8px 0 15px; }
.badge { font-size: 11px; border: 1px solid #344b73; border-radius: 30px; background: #182944; color: #b5c8ff; padding: 6px 12px; }
.empty-state { border: 1px dashed #3c4c6b; border-radius: 16px; padding: 45px; margin-top: 24px; text-align: center; background: #111b2d66; }
.empty-state p { color: var(--muted); line-height: 1.8; max-width: 550px; margin: auto; }
/* Componente vetorial local; sem requisições a fontes ou imagens externas. */
.devices { margin: 28px 0 20px; max-width: 410px; }
.devices svg { width: 100%; height: auto; display: block; }
.device-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.device-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: #b2bfd6; font-size: 10px; }
/* Login usa a altura disponível sem impor a altura mínima da página pública. */
.login-body { min-height: 100dvh; display: flex; flex-direction: column; }
.login-body > header { width: 100%; padding-top: clamp(12px, 2.5dvh, 24px); padding-bottom: clamp(12px, 2.5dvh, 24px); flex-shrink: 0; }
.login-body > main { width: 100%; min-height: 0; flex: 1; display: grid; align-items: center; padding-top: 12px; padding-bottom: 12px; margin: 0 auto; }
.login-body > footer { padding: 12px 20px; flex-shrink: 0; }
.login-body .auth-layout { min-height: 0; gap: clamp(24px, 5vw, 65px); }
.login-body .intro h1 { font-size: clamp(32px, 4vw, 46px); margin: 16px 0; }
.login-body .intro > p { margin: 12px 0; font-size: 14px; }
.login-body .devices { max-width: min(350px, 44dvh); margin: 16px 0; }
.login-body .intro-detail { margin-top: 16px; }
.login-body .intro-caption { margin-top: 16px; }
.login-body .card { padding: clamp(20px, 3.5dvh, 32px); }
.login-body .card > .muted { margin-bottom: 18px; }
.login-body .field { margin: 14px 0; }
.login-body .card-bottom { margin-top: 18px; margin-bottom: 0; }
.login-body .secure-note { padding-top: 14px; margin-top: 14px; margin-bottom: 0; }
@media (max-height: 720px) and (min-width: 681px) {
  .login-body .intro h1 { font-size: 34px; margin: 12px 0; }
  .login-body .devices { max-width: 260px; margin: 10px 0; }
  .login-body .intro-caption { display: none; }
  .login-body .card h2 { margin-top: 10px; font-size: 24px; }
}
@media (max-width: 680px) {
  .login-body .auth-layout { gap: 16px; }
  .login-body .intro h1 { font-size: 28px; margin: 8px 0; }
  .login-body .intro > p, .login-body .devices, .login-body .intro-detail, .login-body .intro-caption { display: none; }
  .login-body .card h2 { font-size: 24px; margin-top: 8px; }
  .login-body .card { padding: 20px; }
  .login-body > footer { padding: 10px 16px; font-size: 10px; }
}
@media (max-width: 900px) {
  .auth-layout { gap: 35px; }
  h1 { font-size: 38px; }
  .card { padding: 26px; }
  main, header { padding-left: 25px; padding-right: 25px; }
}
@media (max-width: 680px) {
  .auth-layout { grid-template-columns: 1fr; min-height: auto; gap: 25px; }
  .intro-detail, .intro-caption { display: none; }
  .intro h1, .registration h1 { font-size: 34px; margin: 15px 0; }
  .intro > p { font-size: 14px; }
  .registration .intro { padding-top: 0; }
  .devices { max-width: 260px; margin: 16px auto; }
  .header-note { display: none; }
  main { padding-top: 15px; }
  .card { padding: 25px; }
  .workspace h1 { font-size: 34px; }
  .empty-state { padding: 25px; }
  .workspace-bar { gap: 12px; }
  .workspace-bar .eyebrow { font-size: 9px; }
  .auth-layout .field input { font-size: 16px; min-height: 48px; }
  .auth-layout button { min-height: 48px; align-items: center; }
}
