/* ========================================
   ESTILOS PARA PÁGINAS DE LOGIN - DESIGN DA IMAGEM
   ======================================== */

/* Remover scrollbar globalmente */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE e Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* === VARIÁVEIS DE CORES BASEADAS NA IMAGEM === */
:root {
  /* Cores da imagem */
  --img-bg-left: #f8f9fa;           /* Cinza muito claro do lado esquerdo */
  --img-bg-right: #ffffff;          /* Branco do lado direito */
  --img-text-primary: #2d3748;     /* Cinza escuro para títulos */
  --img-text-secondary: #718096;   /* Cinza médio para subtítulos */
  --img-text-light: #a0aec0;       /* Cinza claro para descrições */
  --img-card-bg: #ffffff;          /* Fundo branco dos cards */
  --img-card-border: #e2e8f0;      /* Borda cinza clara dos cards */
  --img-input-bg: #f7fafc;         /* Fundo cinza claro dos inputs */
  --img-input-bg-blue: #ebf8ff;    /* Fundo azul claro do input senha */
  --img-button-bg: #4a5568;        /* Cinza escuro do botão */
  --img-button-text: #ffffff;     /* Texto branco do botão */
  --img-accent: #3182ce;           /* Azul para links e destaques */
}

/* Dark mode colors */
[data-theme="dark"] {
  --img-bg-left: #1a202c;
  --img-bg-right: #2d3748;
  --img-text-primary: #f7fafc;
  --img-text-secondary: #cbd5e0;
  --img-text-light: #a0aec0;
  --img-card-bg: #2d3748;
  --img-card-border: #4a5568;
  --img-input-bg: #4a5568;
  --img-input-bg-blue: #2b6cb0;
  --img-button-bg: #4a5568;
  --img-button-text: #f7fafc;
  --img-accent: #63b3ed;
}

/* Light mode custom gradients */
[data-theme="light"] body {
  background: linear-gradient(110deg, #f5f7fa 0%, #eef2f8 35%, #dde5f5 70%, #d5def1 100%);
}

[data-theme="light"] .side-by-side-layout::before {
  background: radial-gradient(115% 140% at 0% 50%, rgba(250, 252, 255, 0.92) 0%, rgba(222, 234, 255, 0.75) 45%, rgba(210, 225, 255, 0) 100%);
}

[data-theme="light"] .login-side {
  background: transparent;
}

/* Dark mode override for continuous gradient */
[data-theme="dark"] body {
  background: linear-gradient(110deg, #0b1324 0%, #101d36 40%, #172842 70%, #1f2f4f 100%);
}

[data-theme="dark"] .side-by-side-layout::before {
  background: radial-gradient(115% 140% at 0% 50%, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.6) 40%, rgba(17, 24, 39, 0) 100%);
}

/* === LAYOUT BASE === */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  /* Desktop: prevenir scroll, Mobile: permitir scroll */
  overflow: hidden;
  position: relative;
}

body {
  background: linear-gradient(110deg, #0b1324 0%, #101d36 40%, #172842 70%, #1f2f4f 100%);
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Desktop: prevenir scroll, Mobile: permitir scroll */
  overflow: hidden;
}

/* MOBILE: SOBRESCREVER overflow hidden - DEVE VIR DEPOIS DAS REGRAS BASE */
@media (max-width: 768px) {
  html,
  html body,
  body {
    overflow: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    flex-direction: unset !important;
  }
}

/* MOBILE: Permitir scroll desde o início - regra com alta especificidade */
@media (max-width: 768px) {
  html,
  html body,
  body {
    overflow: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
  }
}

.side-by-side-layout {
  display: flex;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  height: calc(100vh - clamp(45px, 5vh, 50px)); /* Altura total menos espaço do footer */
  overflow: hidden !important;
  position: relative;
  max-height: calc(100vh - clamp(45px, 5vh, 50px));
  box-sizing: border-box;
  flex-shrink: 0;
}

/* MOBILE: Permitir scroll no layout */
@media (max-width: 768px) {
  .side-by-side-layout {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    min-height: auto !important;
  }
}

.side-by-side-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 140% at 0% 50%, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.6) 40%, rgba(17, 24, 39, 0) 100%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: normal;
}

/* === LADO ESQUERDO - INFORMAÇÕES === */
.info-side {
  flex: 1.4;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 1.5vw, 1.5rem);
  position: relative;
  z-index: 1;
  overflow: hidden !important;
  box-sizing: border-box;
}
.info-content {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  height: 100%;
  justify-content: center;
  overflow: hidden !important;
  box-sizing: border-box;
}
.two-column,
.logo-column {
  display: none;
}
.info-container {
  order: 1;
  flex: 1;
}

.brand-column {
  display: none;
}

.slogan-column {
  flex: 1;
}

.main-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  color: var(--img-text-primary);
  text-align: left;
}

.title-highlight {
  color: var(--img-text-primary);
  font-weight: 700;
}

.main-subtitle {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--img-text-secondary);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-align: left;
  line-height: 1.4;
}

.compact-features {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  margin-bottom: 0;
}

.compact-feature {
  background: var(--img-card-bg);
  border: 1px solid var(--img-card-border);
  border-radius: 12px;
  padding: clamp(0.65rem, 1vw, 0.875rem) clamp(0.75rem, 1vw, 1rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.compact-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compact-feature h4 {
  font-size: clamp(0.85rem, 1.2vw, 0.98rem);
  font-weight: 600;
  margin-bottom: clamp(0.35rem, 0.75vw, 0.5rem);
  color: var(--img-text-primary);
  line-height: 1.3;
}

.compact-feature p {
  font-size: clamp(0.7rem, 1vw, 0.78rem);
  line-height: 1.4;
  color: var(--img-text-light);
  margin: 0;
}

/* === LADO DIREITO - FORMULÁRIO === */
.login-side {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 1.5vw, 1.5rem);
  background: transparent;
  overflow: hidden !important;
  position: relative;
  z-index: 1;
  height: 100%;
  box-sizing: border-box;
}

.login-card {
  background: var(--img-card-bg);
  border: 1px solid var(--img-card-border);
  border-radius: 16px;
  padding: clamp(1.25rem, 1.5vw, 1.5rem);
  width: 100%;
  max-width: 340px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  max-height: 100%;
  overflow: hidden !important;
  box-sizing: border-box;
}

/* MOBILE: Permitir scroll no card */
@media (max-width: 768px) {
  .login-card {
    overflow: visible !important;
    max-height: none !important;
    margin-bottom: 1rem !important;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1vw, 0.875rem);
  margin-bottom: clamp(0.85rem, 1.5vw, 1.25rem);
  flex-shrink: 0;
}
.logo-container .login-logo {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.35));
}
.login-brand {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--img-text-primary);
}

.dashboard-logo {
  height: 32px;
  width: auto;
  max-width: 200px;
}

.card-title {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--img-text-primary);
  text-align: left;
  margin-bottom: clamp(0.85rem, 1.5vw, 1.25rem);
  line-height: 1.3;
  flex-shrink: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  flex-shrink: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 500;
  color: var(--img-text-primary);
  font-size: 0.875rem;
}

.form-row input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--img-card-border);
  border-radius: 8px;
  background: var(--img-input-bg);
  color: var(--img-text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

/* Input específico para senha - sem fundo azul */
.form-row input[type="password"] {
  background: var(--img-input-bg);
}

.form-row input:focus {
  outline: none;
  border-color: var(--img-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--img-text-secondary);
}

.remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--img-accent);
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: var(--img-button-bg);
  color: var(--img-button-text);
}

.btn.primary:hover {
  background: #2d3748;
  transform: translateY(-1px);
}

.btn.full-width {
  width: 100%;
}

.footer-links {
  text-align: center;
  margin-top: 1.5rem;
}

.footer-links a {
  color: var(--img-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--img-accent);
}

.messages {
  margin-bottom: 1rem;
}

.messages li {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.messages .error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #e53e3e;
  color: #e53e3e;
}

.messages .success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #38a169;
  color: #38a169;
}

/* === FOOTER === */
.login-footer {
  text-align: center;
  padding: clamp(8px, 1vh, 12px) clamp(8px, 1vw, 10px);
  font-size: clamp(10px, 1.2vw, 12px);
  color: var(--rm-footer-text, #9ca3af);
  background: transparent;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  flex-shrink: 0;
  min-height: clamp(60px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

/* MOBILE: Footer relativo para permitir scroll - CORREÇÃO COMPLETA */
@media (max-width: 768px) {
  /* FORÇAR footer relativo com máxima especificidade */
  body .login-footer,
  html body .login-footer,
  .login-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 3rem !important;
    margin-bottom: 0 !important;
    padding: 2rem 1rem !important;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px) + 60px) !important;
    z-index: 1 !important;
    background: transparent !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Garantir que o body tenha espaço para o footer + barra do navegador */
  body {
    padding-bottom: 0 !important;
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* Garantir que o html tenha altura suficiente */
  html {
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* Garantir que o side-by-side-layout não bloqueie */
  .side-by-side-layout {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    min-height: auto !important;
  }
  
  /* Garantir que o login-card tenha espaço no final */
  .login-card {
    margin-bottom: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Garantir que o formulário tenha espaço */
  .form {
    margin-bottom: 1.5rem !important;
  }
  
  /* Ajustar links do footer no mobile - FORÇAR COLUNA */
  .login-footer__container {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .login-footer__links {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .login-footer__links a {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
  }
  
  .login-footer__links span {
    display: none !important;
  }
  
  .login-footer__copyright {
    margin-bottom: 0.75rem !important;
    text-align: center !important;
  }
  
  .login-footer__meta {
    margin-top: 0.75rem !important;
    text-align: center !important;
  }
}

.login-footer a,
.login-footer a:link,
.login-footer a:visited {
  color: var(--rm-footer-text, #9ca3af) !important;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
  font-size: clamp(9px, 1vw, 11px);
}

.login-footer a:hover,
.login-footer a:focus,
.login-footer a:active {
  color: var(--rm-footer-text, #9ca3af) !important;
  text-decoration: underline;
}

.login-footer__meta {
  margin-top: clamp(4px, 0.5vh, 6px);
  font-size: clamp(8px, 0.9vw, 10px);
  color: var(--rm-footer-text, #6b7280);
  line-height: 1.2;
  opacity: 0.8;
}

.login-footer p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.login-footer__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: 100%;
  padding: 0 clamp(0.5rem, 1vw, 1rem);
}

.login-footer__copyright {
  margin: 0;
  font-size: clamp(10px, 1.2vw, 0.875rem);
  color: var(--rm-footer-text, #9ca3af);
}

.login-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1rem);
  font-size: clamp(9px, 1vw, 0.875rem);
}

.login-footer__links a,
.login-footer__links a:link,
.login-footer__links a:visited {
  color: var(--rm-footer-text, #9ca3af) !important;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
  padding: 2px 0;
}

.login-footer__links a:hover,
.login-footer__links a:focus,
.login-footer__links a:active {
  color: var(--rm-footer-text, #9ca3af) !important;
  text-decoration: underline;
}

.login-footer__links span {
  color: var(--rm-footer-text, #6b7280);
  font-size: clamp(8px, 0.9vw, 0.875rem);
  margin: 0 clamp(2px, 0.3vw, 4px);
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
  .side-by-side-layout {
    height: calc(100vh - clamp(60px, 8vh, 80px));
    max-height: calc(100vh - clamp(60px, 8vh, 80px));
  }
  
  .info-side {
    flex: 1.2;
    padding: clamp(1rem, 1.8vw, 1.5rem) clamp(1rem, 1.5vw, 1.25rem);
  }
  
  .login-side {
    flex: 1;
    padding: clamp(1rem, 1.5vw, 1.25rem);
  }
  
  .main-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.65rem);
  }
  
  .main-subtitle {
    margin-bottom: clamp(0.85rem, 1.8vw, 1.25rem);
  }
  
  .compact-feature {
    padding: clamp(0.65rem, 1vw, 0.8rem) clamp(0.7rem, 1vw, 0.9rem);
  }
}

@media (max-width: 768px) {
  /* MOBILE: Permitir scroll vertical - regras com alta especificidade */
  html,
  html body,
  body {
    overflow: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
  }
  
  body {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .side-by-side-layout {
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex: 1 !important;
    padding-bottom: 20px !important;
    position: relative !important;
  }
  
  .info-side {
    flex: none !important;
    padding: 1.5rem 1rem !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    height: auto !important;
  }
  
  .info-content {
    text-align: center !important;
    align-items: center !important;
    gap: 1rem !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
  }
  
  .info-container {
    width: 100%;
  }
  
  .main-title {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .main-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .compact-features {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .compact-feature {
    padding: 0.85rem 1rem;
  }
  
  .login-side {
    flex: none !important;
    padding: 1.5rem 1rem !important;
    min-height: auto !important;
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
  }
  
  .login-card {
    overflow: visible !important;
    max-height: none !important;
    position: relative !important;
  }
  
  /* Garantir que o formulário seja scrollável */
  .form {
    overflow: visible !important;
    position: relative !important;
  }
  
  .logo-container {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .logo-container .login-logo {
    width: 70px;
  }
  
  .login-brand {
    letter-spacing: 0.18em;
  }
  
  .login-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 2rem 1rem !important;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px) + 60px) !important;
    margin-top: 3rem !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 1 !important;
  }
  
  body {
    padding-bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
  
  html {
    height: auto !important;
    max-height: none !important;
  }
  
  .login-footer__container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .login-footer__copyright {
    font-size: clamp(9px, 1.1vw, 11px);
  }
  
  .login-footer__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: clamp(8px, 1vw, 10px);
  }
  
  .login-footer__links a {
    padding: 2px 0;
  }
  
  .login-footer__links span {
    margin: 0 2px;
  }
  
  .login-footer__meta {
    margin-top: 0.5rem;
    font-size: clamp(7px, 0.9vw, 9px);
  }
}

@media (max-width: 480px) {
  /* MOBILE PEQUENO: Garantir scroll suave - regras com alta especificidade */
  html,
  html body,
  body {
    overflow: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
  }
  
  .side-by-side-layout {
    min-height: auto;
    height: auto;
    overflow: visible !important;
  }
  
  .info-side {
    padding: 1.25rem 1rem;
    max-height: none;
    overflow: visible !important;
  }

  .main-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .main-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .compact-features {
    gap: 0.65rem;
  }

  .compact-feature {
    padding: 0.75rem 0.9rem;
  }

  .compact-feature h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .compact-feature p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .login-side {
    padding: 1.25rem 1rem;
    overflow: visible !important;
  }

  .login-card {
    padding: 1.25rem;
    max-width: 100%;
    overflow: visible !important;
    max-height: none;
  }
  
  .logo-container .login-logo {
    width: 60px;
  }

  .card-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .form {
    gap: 1rem;
  }
  
  .form-row input {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .login-footer {
    position: relative !important;
    padding: clamp(10px, 1.5vh, 15px) clamp(8px, 2vw, 12px);
    font-size: 12px;
    margin-top: auto;
    min-height: auto;
  }
  
  .login-footer a {
    font-size: clamp(9px, 1.1vw, 11px);
    padding: 2px 0;
  }
  
  .login-footer__container {
    flex-direction: column;
    gap: clamp(0.5rem, 0.8vh, 0.75rem);
  }
  
  .login-footer__copyright {
    font-size: clamp(8px, 1vw, 10px);
  }
  
  .login-footer__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
    font-size: clamp(7px, 0.95vw, 9px);
  }
  
  .login-footer__links a {
    padding: 2px 0;
  }
  
  .login-footer__links span {
    margin: 0 2px;
    font-size: clamp(6px, 0.85vw, 8px);
  }
  
  .login-footer__meta {
    margin-top: 0.5rem;
    font-size: clamp(6px, 0.85vw, 8px);
  }
}

/* === TOGGLE DE SENHA === */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  padding-right: 3rem; /* Espaço para o botão */
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--img-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.password-toggle:hover {
  color: var(--img-accent);
  background: rgba(49, 130, 206, 0.1);
}

.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.password-toggle i {
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.password-toggle:hover i {
  transform: scale(1.1);
}

/* Dark mode para toggle */
[data-theme="dark"] .password-toggle {
  color: var(--img-text-secondary);
}

[data-theme="dark"] .password-toggle:hover {
  color: var(--img-accent);
  background: rgba(99, 179, 237, 0.1);
}

/* Dark mode para toggle */
[data-theme="dark"] .password-toggle {
  color: var(--img-text-secondary);
}

[data-theme="dark"] .password-toggle:hover {
  color: var(--img-accent);
  background: rgba(99, 179, 237, 0.1);
}