/* Autenticação v2 — login e seleção de empresa são páginas soltas (sem
   sidebar, pré-app); trocar senha usa o shell padrão (uk2-shell.css). */

/* ---------- login: painel dividido ---------- */
.av2-split { display: flex; min-height: calc(100vh / var(--uk2-zoom, 1)); }
.av2-brand {
  width: 58%; flex: none; background: var(--navy-950); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px 64px; color: #fff;
}
.av2-brand::before { content: ""; position: absolute; inset: 0; background-image: var(--brand-grid); }
.av2-brand-watermark { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); color: rgba(186,210,71,.08); pointer-events: none; }
.av2-brand-content { position: relative; display: flex; flex-direction: column; height: 100%; }
.av2-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(186,210,71,.4); border-radius: var(--radius-pill);
  padding: 6px 15px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lime-500);
  width: fit-content;
}
.av2-eyebrow-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.av2-hero { margin-top: auto; max-width: 560px; }
.av2-hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: #fff; margin-top: 22px; }
.av2-hero h1 span { color: var(--lime-500); }
.av2-hero p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.6); font-weight: 500; margin-top: 18px; max-width: 460px; }
.av2-stats { margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.av2-stats .num { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.av2-stats .num.accent { color: var(--lime-500); }
.av2-stats .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 5px; }

.av2-form-panel { position: relative; flex: 1; background: var(--surface-page); display: flex; align-items: center; justify-content: center; padding: 40px 48px; }
.av2-form-inner { width: 100%; max-width: 380px; }
.av2-form-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 26px; }
.av2-form-heading { font-size: 26px; font-weight: 800; color: var(--text-strong); letter-spacing: -.02em; }
.av2-form-sub { font-size: 13.5px; color: var(--text-muted); font-weight: 600; margin-top: 6px; }

.av2-field-group { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.av2-field-group:first-of-type { margin-top: 26px; }
.av2-flabel { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.av2-field-head { display: flex; align-items: baseline; gap: 10px; }
.av2-field {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-card); font-size: 14.5px;
}
.av2-field:focus-within { border-color: var(--olive-600); box-shadow: 0 0 0 2px rgba(110,154,64,.16); }
.av2-field i { color: var(--text-faint); flex: none; }
.av2-field input { border: none; outline: none; background: transparent; flex: 1; font: inherit; color: inherit; min-width: 0; }
.av2-field button { background: none; border: none; padding: 0; cursor: pointer; color: var(--text-faint); display: flex; }

.av2-lnk { font-size: 12.5px; font-weight: 700; color: var(--text-accent); cursor: pointer; margin-left: auto; }
.av2-forgot-hint { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 8px; display: none; }
.av2-forgot-hint.show { display: block; }

.av2-remember {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-body); cursor: pointer; user-select: none; }
.av2-remember input { position: absolute; opacity: 0; pointer-events: none; }
.av2-chk { width: 20px; height: 20px; border-radius: 5px; flex: none; border: 1.5px solid var(--line-soft); background: var(--surface-card); display: flex; align-items: center; justify-content: center; }
.av2-chk svg { opacity: 0; }
.av2-remember input:checked + .av2-chk { background: var(--lime-500); border-color: var(--lime-500); }
.av2-remember input:checked + .av2-chk svg { opacity: 1; }

.av2-footer-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.av2-footer-notes .row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--text-muted); font-weight: 600; line-height: 1.5; }
.av2-footer-notes .row i { color: var(--text-faint); flex: none; margin-top: 2px; }

@media (max-width: 991px) {
  .av2-split { display: block; }
  .av2-brand { display: none; }
  .av2-form-panel { width: 100%; padding: 40px 22px; min-height: calc(100vh / var(--uk2-zoom, 1)); }
  .av2-form-mobile-brand { display: flex; }
}

/* ---------- selecionar empresa ---------- */
.av2-select-header {
  background: var(--navy-950); padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 16px; flex: none;
}
.av2-select-user { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.av2-select-user-name { font-size: 12.5px; font-weight: 700; color: #fff; }
.av2-select-user-sub { font-size: 10.5px; color: rgba(255,255,255,.45); }
.av2-select-logout {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.62);
  padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14);
}
.av2-select-body { padding: 32px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.av2-select-heading-row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.av2-select-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); }
.av2-select-sub { font-size: 13.5px; color: var(--text-muted); font-weight: 600; margin-top: 5px; }
.av2-select-search { width: 280px; height: 44px; padding: 0 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-card); font-size: 13.5px; margin-left: auto; }

.av2-all-card {
  background: var(--navy-950); border-radius: 12px; padding: 18px 22px; display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden; cursor: pointer; border: none; text-align: left; width: 100%; color: inherit; font: inherit;
}
.av2-all-card::before { content: ""; position: absolute; inset: 0; background-image: var(--brand-grid); }
.av2-all-icon { position: relative; width: 44px; height: 44px; border-radius: 10px; background: var(--tint-lime); display: flex; align-items: center; justify-content: center; color: var(--lime-500); flex: none; font-size: 19px; }
.av2-all-name { position: relative; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.av2-all-sub { position: relative; font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 600; margin-top: 2px; }
.av2-all-cta { position: relative; margin-left: auto; }

.av2-company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.av2-company-card {
  background: var(--surface-card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 15px 17px;
  display: flex; align-items: center; gap: 13px; cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit;
}
.av2-company-card:hover { border-color: var(--olive-600); background: var(--tint-green); }
.av2-company-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--surface-page); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex: none; }
.av2-company-code { font-size: 11px; font-weight: 800; color: var(--text-muted); }
.av2-company-name { font-size: 14px; font-weight: 800; color: var(--text-strong); }
.av2-company-hint { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.av2-company-card.hidden { display: none; }

.av2-select-footnote { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

@media (max-width: 1024px) { .av2-company-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .av2-company-grid { grid-template-columns: 1fr; }
  .av2-select-heading-row { flex-direction: column; align-items: stretch; }
  .av2-select-search { width: 100%; margin-left: 0; }
  /* Com o globo, o "Sair" não cabia mais. O nome sai do cabeçalho — a tela já
     diz "Olá, <nome>" logo abaixo — e o avatar fica. */
  .av2-select-header { padding: 0 18px; gap: 12px; }
  .av2-select-user > div:not(.uk2-avatar) { display: none; }
}

/* ---------- trocar senha ---------- */
.tv2-wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.tv2-strength-box { background: var(--surface-page); border: 1px solid rgba(32,48,51,.08); border-radius: 9px; padding: 15px 17px; }
.tv2-strength-head { display: flex; align-items: center; gap: 10px; }
.tv2-strength-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.tv2-strength-value { margin-left: auto; font-size: 12px; font-weight: 800; }
.tv2-strength-bars { display: flex; gap: 5px; margin-top: 9px; }
.tv2-strength-bars > div { flex: 1; height: 5px; border-radius: var(--radius-pill); background: var(--line-soft); }
.tv2-strength-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; margin-top: 14px; }
.tv2-strength-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-faint); }
.tv2-strength-check.met { color: var(--text-strong); }
.tv2-strength-check.met i { color: var(--olive-600); }
.tv2-form-footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.tv2-form-footer-note { font-size: 12px; color: var(--text-muted); font-weight: 600; line-height: 1.5; max-width: 320px; }
