/* Compatibilidade visual + novo shell administrativo */
[x-cloak] {
  display: none !important;
}

.z-999 {
  z-index: 999;
}

.z-9999 {
  z-index: 9999;
}

.legacy-surface {
  width: 100%;
}

/* Compat classes antigas usadas nas telas */
.bg-ta-50 { background-color: #f9fafb !important; }
.bg-ta-100 { background-color: #f3f4f6 !important; }
.bg-ta-200 { background-color: #e5e7eb !important; }
.bg-ta-50\/95 { background-color: rgba(249, 250, 251, 0.95) !important; }

.text-ta-500 { color: #6b7280 !important; }
.text-ta-600 { color: #4b5563 !important; }
.text-ta-700 { color: #374151 !important; }
.text-ta-800 { color: #1f2937 !important; }
.text-ta-900 { color: #111827 !important; }

.border-ta-100 { border-color: #f3f4f6 !important; }
.border-ta-200 { border-color: #e5e7eb !important; }
.border-ta-300 { border-color: #d1d5db !important; }

.shadow-card {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.shadow-panel {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35), 0 2px 12px rgba(15, 23, 42, 0.2) !important;
}

/* Menu lateral */
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.menu-item-icon-active,
.menu-item-icon-inactive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-item-text {
  font-size: 0.925rem;
  line-height: 1.2rem;
}

.menu-item-active {
  background: #465fff;
  color: #fff !important;
}

.menu-item-active .menu-item-icon-active {
  color: #fff !important;
}

.menu-item-inactive {
  color: #344054;
}

.menu-item-inactive:hover {
  background: #f3f4f6;
  color: #111827;
}

/* dark mode */
.dark .menu-item-inactive {
  color: #d1d5db;
}

.dark .menu-item-inactive:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dark .text-ta-500 { color: #9ca3af !important; }
.dark .text-ta-600 { color: #d1d5db !important; }
.dark .text-ta-700 { color: #e5e7eb !important; }
.dark .text-ta-800,
.dark .text-ta-900 { color: #f9fafb !important; }

.dark .bg-ta-50 { background-color: rgba(255, 255, 255, 0.04) !important; }
.dark .bg-ta-100 { background-color: rgba(255, 255, 255, 0.06) !important; }
.dark .bg-ta-200 { background-color: rgba(255, 255, 255, 0.1) !important; }

.dark .border-ta-100,
.dark .border-ta-200,
.dark .border-ta-300 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Padrao visual unificado para telas administrativas legadas */
.legacy-surface .rounded-xl.border.border-ta-200,
.legacy-surface .rounded-2xl.border.border-ta-200 {
  border-color: #e5e7eb !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.legacy-surface input.border-ta-200,
.legacy-surface select.border-ta-200,
.legacy-surface textarea.border-ta-200 {
  border-color: #d1d5db !important;
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

.legacy-surface input.border-ta-200::placeholder,
.legacy-surface textarea.border-ta-200::placeholder {
  color: #6b7280 !important;
}

.legacy-surface .bg-emerald-100 { background-color: #dcfce7 !important; }
.legacy-surface .text-emerald-700 { color: #15803d !important; }
.legacy-surface .bg-rose-100 { background-color: #ffe4e6 !important; }
.legacy-surface .text-rose-700 { color: #be123c !important; }

.dark .legacy-surface .rounded-xl.border.border-ta-200,
.dark .legacy-surface .rounded-2xl.border.border-ta-200 {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.dark .legacy-surface input.border-ta-200,
.dark .legacy-surface select.border-ta-200,
.dark .legacy-surface textarea.border-ta-200 {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background-color: #0f172a !important;
  color: #e5e7eb !important;
}

.dark .legacy-surface input.border-ta-200::placeholder,
.dark .legacy-surface textarea.border-ta-200::placeholder {
  color: #9ca3af !important;
}

.dark .legacy-surface .bg-emerald-100 {
  background-color: rgba(16, 185, 129, 0.18) !important;
}

.dark .legacy-surface .text-emerald-700 {
  color: #34d399 !important;
}

.dark .legacy-surface .bg-rose-100 {
  background-color: rgba(244, 63, 94, 0.2) !important;
}

.dark .legacy-surface .text-rose-700 {
  color: #fb7185 !important;
}

.dark .legacy-surface .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.12) !important;
}

.dark .legacy-surface .text-emerald-700 {
  color: #34d399 !important;
}

.dark .legacy-surface .border-emerald-200 {
  border-color: rgba(16, 185, 129, 0.28) !important;
}

.dark .legacy-surface .bg-rose-50 {
  background-color: rgba(244, 63, 94, 0.12) !important;
}

.dark .legacy-surface .text-rose-700 {
  color: #fb7185 !important;
}

.dark .legacy-surface .border-rose-200 {
  border-color: rgba(244, 63, 94, 0.28) !important;
}

/* Fallback de cores para botoes do painel */
.bg-brand-500 { background-color: #465fff !important; }
.hover\:bg-brand-600:hover { background-color: #3641f5 !important; }
.text-brand-600 { color: #3641f5 !important; }

.bg-green-700 { background-color: #15803d !important; }
.hover\:bg-green-600:hover { background-color: #16a34a !important; }
.bg-red-700 { background-color: #b91c1c !important; }
.hover\:bg-red-600:hover { background-color: #dc2626 !important; }
.bg-slate-700 { background-color: #334155 !important; }
.hover\:bg-slate-600:hover { background-color: #475569 !important; }
.bg-violet-700 { background-color: #6d28d9 !important; }
.hover\:bg-violet-600:hover { background-color: #7c3aed !important; }
.bg-teal-700 { background-color: #0f766e !important; }
.hover\:bg-teal-600:hover { background-color: #0d9488 !important; }
.bg-teal-900 { background-color: #134e4a !important; }
.hover\:bg-teal-800:hover { background-color: #115e59 !important; }
.bg-blue-700 { background-color: #1d4ed8 !important; }
.hover\:bg-blue-600:hover { background-color: #2563eb !important; }
.bg-emerald-700 { background-color: #047857 !important; }
.hover\:bg-emerald-600:hover { background-color: #059669 !important; }
.bg-amber-600 { background-color: #d97706 !important; }
.hover\:bg-amber-500:hover { background-color: #f59e0b !important; }

button.bg-brand-500,
button.bg-green-700,
button.bg-red-700,
button.bg-slate-700,
button.bg-violet-700,
button.bg-teal-700,
button.bg-teal-900,
button.bg-blue-700,
button.bg-emerald-700,
button.bg-amber-600 {
  color: #fff !important;
}

/* Dashboard: botoes com cor fixa por acao */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.dash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

.dash-btn-secondary {
  color: #374151 !important;
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
}

.dash-btn-secondary:hover {
  background: #e5e7eb !important;
}

.dash-btn-control { background: #465fff !important; }
.dash-btn-control:hover { background: #3641f5 !important; }
.dash-btn-overlay { background: #6d28d9 !important; }
.dash-btn-overlay:hover { background: #7c3aed !important; }
.dash-btn-duplicate { background: #d97706 !important; }
.dash-btn-duplicate:hover { background: #f59e0b !important; }
.dash-btn-youtube { background: #b91c1c !important; }
.dash-btn-youtube:hover { background: #dc2626 !important; }
.dash-btn-weather { background: #0f766e !important; }
.dash-btn-weather:hover { background: #0d9488 !important; }
.dash-btn-instagram { background: #7c3aed !important; }
.dash-btn-instagram:hover { background: #8b5cf6 !important; }
.dash-btn-whatsapp { background: #047857 !important; }
.dash-btn-whatsapp:hover { background: #059669 !important; }
.dash-btn-penalties { background: #0ea5e9 !important; }
.dash-btn-penalties:hover { background: #0284c7 !important; }
.dash-btn-lower-third { background: #14532d !important; }
.dash-btn-lower-third:hover { background: #166534 !important; }

.dark .dash-btn-secondary {
  color: #e5e7eb !important;
  background: #111827 !important;
  border-color: #374151 !important;
}

.dark .dash-btn-secondary:hover {
  background: #1f2937 !important;
}

/* Controles de overlays: Ativar / Desativar */
.overlay-toggle,
.lineup-side-toggle {
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.24);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.overlay-toggle:hover,
.lineup-side-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.24);
}

.overlay-toggle[data-active="1"],
.lineup-side-toggle[data-active="1"] {
  background: #15803d !important;
}

.overlay-toggle[data-active="1"]:hover,
.lineup-side-toggle[data-active="1"]:hover {
  background: #16a34a !important;
}

.overlay-toggle[data-active="0"],
.lineup-side-toggle[data-active="0"] {
  background: #b91c1c !important;
}

.overlay-toggle[data-active="0"]:hover,
.lineup-side-toggle[data-active="0"]:hover {
  background: #dc2626 !important;
}

/* Badges de status ATIVO / INATIVO */
.legacy-surface [id^="badge-"] {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.legacy-surface [id^="badge-"].bg-emerald-100 {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

.legacy-surface [id^="badge-"].bg-rose-100 {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fda4af !important;
}

.dark .legacy-surface [id^="badge-"].bg-emerald-100 {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

.dark .legacy-surface [id^="badge-"].bg-rose-100 {
  background: rgba(244, 63, 94, 0.2) !important;
  color: #fb7185 !important;
  border-color: rgba(251, 113, 133, 0.45) !important;
}

/* Overlay lineup: largura fixa para numero + nome */
.lineup-player-row-wrap {
  display: block;
}

.lineup-player-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

/* Admin overlay-penalties: fundos no modo escuro (evita branco em botões/cartões) */
.dark .legacy-surface .penalty-round-card {
  background-color: #111827 !important;
  border-color: #374151 !important;
}

.dark .legacy-surface .penalty-team-box {
  background-color: #1f2937 !important;
  border-color: #4b5563 !important;
}

.dark .legacy-surface button.penalty-kick-btn {
  background-image: none !important;
  opacity: 1 !important;
}

/* Estados não selecionados — borda distinta por coluna */
.dark .legacy-surface button.penalty-kick-btn.border-gray-300 {
  background-color: #1f2937 !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-gray-300:hover {
  background-color: #374151 !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-emerald-300 {
  background-color: #064e3b !important;
  color: #a7f3d0 !important;
  border-color: #047857 !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-emerald-300:hover {
  background-color: #065f46 !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-rose-300 {
  background-color: #881337 !important;
  color: #fecdd3 !important;
  border-color: #be123c !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-rose-300:hover {
  background-color: #9f1239 !important;
}

/* Selecionado (mantém cores fortes) */
.dark .legacy-surface button.penalty-kick-btn.border-slate-500.bg-slate-600 {
  background-color: #475569 !important;
  color: #f8fafc !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-emerald-700.bg-emerald-600 {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.dark .legacy-surface button.penalty-kick-btn.border-rose-800.bg-rose-600 {
  background-color: #e11d48 !important;
  color: #ffffff !important;
}

/* --- admin/overlay-stats.php: fundo escuro garantido (alguns dark:* não são gerados no bundle) --- */
html.dark .legacy-surface .overlay-stats-page .rounded-xl.border.border-gray-200.bg-white,
html.dark .legacy-surface .overlay-stats-page .rounded-xl.border.border-gray-200.bg-white.shadow-card {
  background-color: #101828 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .legacy-surface .overlay-stats-page .overlay-stats-stacked {
  background-color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark .legacy-surface .overlay-stats-page .stats-indicator-row h3 {
  color: #f9fafb !important;
}

html.dark .legacy-surface .overlay-stats-page .stats-indicator-row .rounded-lg.border.border-gray-200 {
  background-color: #1d2939 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- admin/profile.php: largura e campos legíveis no modo escuro --- */
.legacy-surface .profile-page .profile-form-card {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.05);
}

html.dark .legacy-surface .profile-page .profile-form-card {
  background-color: #101828 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legacy-surface .profile-page .profile-input {
  background-color: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.legacy-surface .profile-page .profile-input::placeholder {
  color: #6b7280;
}

html.dark .legacy-surface .profile-page .profile-input {
  background-color: #0f172a !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark .legacy-surface .profile-page .profile-input::placeholder {
  color: #9ca3af !important;
}

html.dark .legacy-surface .profile-page .profile-input:focus {
  border-color: #465fff !important;
  box-shadow: 0 0 0 3px rgba(70, 95, 255, 0.28) !important;
  outline: none !important;
}

/* Chrome autofill no dark: evita fundo branco sobre texto claro */
html.dark .legacy-surface .profile-page input:-webkit-autofill,
html.dark .legacy-surface .profile-page input:-webkit-autofill:hover,
html.dark .legacy-surface .profile-page input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  -webkit-text-fill-color: #f3f4f6 !important;
  caret-color: #f3f4f6;
}

/* --- admin/login.php: layout e visual 100% em admin-panel (Tailwind build não inclui classes desta página) --- */

/* Sem 100vw + calc(50%-50vw): isso estoura a largura (barra de rolagem) no Windows.
 * Com login-layout no layout.php o conteúdo já é full-width; só 100% aqui. */
body.login-layout-body {
  overflow-x: hidden;
}

.legacy-surface .login-page-root {
  --login-brand-w: min(46vw, 36rem);
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-page-root .login-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Botão tema (ícones alternados via CSS, sem depender de dark: do Tailwind) */
.login-page-root .login-theme-btn {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 100;
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.login-page-root .login-theme-btn:hover {
  background: #f9fafb;
}

html.dark .login-page-root .login-theme-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1f2937;
  color: #e5e7eb;
}

html.dark .login-page-root .login-theme-btn:hover {
  background: #374151;
}

.login-page-root .login-theme-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.login-page-root .login-theme-icon--dark {
  display: none;
}

html.dark .login-page-root .login-theme-icon--dark {
  display: block;
}

html.dark .login-page-root .login-theme-icon--light {
  display: none;
}

.login-page-root .login-theme-icon--light {
  display: block;
}

/* Coluna marca — gradiente sempre definido aqui (não use bg-gradient-* só no HTML) */
.login-page-root .login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 220px;
  padding: 2.5rem 1.75rem;
  color: #fff;
  background: linear-gradient(155deg, #312e81 0%, #4338ca 48%, #1e1b4b 100%) !important;
  box-sizing: border-box;
}

.login-page-root .login-brand-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(48px);
}

.login-page-root .login-brand-glow--1 {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: -4rem;
  background: rgba(34, 211, 238, 0.22);
}

.login-page-root .login-brand-glow--2 {
  width: 16rem;
  height: 16rem;
  left: -3rem;
  bottom: -3rem;
  background: rgba(217, 70, 239, 0.2);
}

.login-page-root .login-brand-glow--3 {
  width: 10rem;
  height: 10rem;
  right: 22%;
  top: 28%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(32px);
}

.login-page-root .login-brand-inner {
  position: relative;
  z-index: 2;
}

.login-page-root .login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.login-page-root .login-brand-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.login-page-root .login-brand-title {
  margin: 2rem 0 0;
  max-width: 26rem;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .login-page-root .login-brand-title {
    font-size: 2.25rem;
  }
}

.login-page-root .login-brand-lead {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.login-page-root .login-brand-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.login-page-root .login-brand-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.login-page-root .login-brand-check {
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  font-weight: 700;
  color: #a7f3d0;
}

.login-page-root .login-brand-foot {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Formulário */
.login-page-root .login-form-section {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
  background: #f8fafc;
  box-sizing: border-box;
}

html.dark .login-page-root .login-form-section {
  background: #0b0f1a;
}

.login-page-root .login-form-wrap {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.login-page-root .login-mobile-appname {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #465fff;
}

@media (min-width: 1024px) {
  .login-page-root .login-mobile-appname {
    display: none;
  }
}

.login-page-root .login-form-card {
  border-radius: 1rem;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
}

@media (min-width: 640px) {
  .login-page-root .login-form-card {
    padding: 2.5rem;
  }
}

.login-page-root .login-form-head {
  text-align: center;
}

.login-page-root .login-form-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

html.dark .login-page-root .login-form-title {
  color: #f9fafb;
}

.login-page-root .login-form-sub {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
}

html.dark .login-page-root .login-form-sub {
  color: #9ca3af;
}

.login-page-root .login-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-page-root .login-label {
  display: block;
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

html.dark .login-page-root .login-label {
  color: #d1d5db;
}

.login-page-root .login-input-wrap {
  position: relative;
}

.login-page-root .login-input-icon {
  pointer-events: none;
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

html.dark .login-page-root .login-input-icon {
  color: #6b7280;
}

.login-page-root .login-toggle-pw {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.login-page-root .login-toggle-pw:hover {
  background: #f3f4f6;
  color: #374151;
}

html.dark .login-page-root .login-toggle-pw:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.login-page-root .login-form-note {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

html.dark .login-page-root .login-form-note {
  color: #6b7280;
}

.login-page-root .login-form-note-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(16, 185, 129, 0.85);
}

.login-page-root .login-form-help {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

html.dark .login-page-root .login-form-help {
  color: #64748b;
}

/* Desktop: coluna fixa + mesma largura em vw que a margem do formulário */
@media (min-width: 1024px) {
  .login-page-root .login-brand {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: var(--login-brand-w);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 3rem 2.25rem;
  }

  .login-page-root .login-brand-foot {
    margin-top: 0;
  }

  .login-page-root .login-form-section {
    margin-left: var(--login-brand-w);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 4rem 3rem;
  }
}

@media (min-width: 1280px) {
  .login-page-root .login-form-section {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

html.dark .legacy-surface .login-page-root .login-form-card {
  background-color: #101828 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .legacy-surface .login-page-root .login-input {
  background-color: #0f172a !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark .legacy-surface .login-page-root .login-input:focus {
  border-color: #465fff !important;
  box-shadow: 0 0 0 3px rgba(70, 95, 255, 0.25) !important;
}

html.dark .legacy-surface .login-page-root input:-webkit-autofill,
html.dark .legacy-surface .login-page-root input:-webkit-autofill:hover,
html.dark .legacy-surface .login-page-root input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  -webkit-text-fill-color: #f3f4f6 !important;
}

