/* ==========================================================================
   1. FUNDO E CARD PRINCIPAL
   ========================================================================== */
body {
  background-color: var(--bg-light, #f4f6f9);
  background-image: url('../img/fundo.png');
  background-repeat: no-repeat;  
  background-position: center;   
  background-size: cover;        
  background-attachment: fixed;
}

.login-card {
  width: 100%;
  max-width: 820px;
  min-height: 500px;
  background: var(--white, #ffffff);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* ==========================================================================
   2. SIDEBAR ESQUERDA (FEITA PARA FICAR IGUAL À FOTO)
   ========================================================================== */
.sidebar-panel {
  background-color: var(--navy-sidebar, #0b1120);
  color: var(--white, #ffffff);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sidebar-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  max-width: 200px;
}

#sidebarTitle,
#sidebarSubtitle {
  transition: opacity 0.2s ease-in-out;
}

/* ==========================================================================
   3. ÁREA DIREITA E TRANSIÇÃO SUAVE DE FORMULÁRIOS
   ========================================================================== */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Contêiner com altura automática que preserva o layout */
.forms-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Estado Padrão dos Formulários: Oculto com Opacidade 0 e Deslocado */
.auth-form {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: 100%;
}

/* Estado Ativo: Visível com Fade-in e Animação suave para a posição correta */
.auth-form.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   4. INPUTS COM ÍCONES INTERNOS (IDÊNTICO À IMAGEM)
   ========================================================================== */
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #1e293b);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 10px 42px 10px 14px; /* Espaço à direita para o ícone */
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main, #1e293b);
  outline: none;
  background-color: var(--white, #ffffff);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--verde-simpliza, #16a74a);
  box-shadow: 0 0 0 3px rgba(22, 167, 74, 0.15);
}

.input-icon {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border-radius: 6px;
  width: 26px;
  height: 26px;
}

.forgot-link {
  font-size: 13px;
  color: var(--verde-simpliza, #16a74a);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. BOTÕES
   ========================================================================== */
.btn-submit {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: var(--azul-simpliza, #51c1e1);
  color: var(--white, #ffffff);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(81, 193, 225, 0.25);
}

.btn-submit:hover {
  background-color: var(--verde-simpliza, #16a74a);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 167, 74, 0.35);
}

.btn-google {
  padding: 11px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background-color: var(--white, #ffffff);
  color: var(--text-main, #1e293b);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-google:hover {
  background-color: #f8fafc;
}

.register-text {
  font-size: 14px;
  color: var(--text-muted, #64748b);
}

.register-text a {
  color: var(--verde-simpliza, #16a74a);
  font-weight: 600;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   6. BANNER DE COOKIES
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 820px;
  background-color: var(--white, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  transition: opacity 0.3s ease;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
}

.cookie-banner p a {
  color: var(--verde-simpliza, #16a74a);
  text-decoration: underline;
  font-weight: 500;
}

.btn-accept-cookies {
  background-color: var(--navy-dark, #0f172a);
  color: var(--white, #ffffff);
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-accept-cookies:hover {
  background-color: var(--verde-simpliza, #16a74a);
}

/* Responsividade */
@media (max-width: 767.98px) {
  .sidebar-text {
    font-size: 18px;
    max-width: 100%;
  }
}

/* ==========================================================================
   3. ÁREA DIREITA E TRANSIÇÃO SUAVE DE FORMULÁRIOS (FADE + SLIDE + BLUR)
   ========================================================================== */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Contêiner fixo para evitar saltos ou distorção de tamanho */
.forms-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 380px; /* Garante estabilidade na transição entre telas */
}

/* Formulário Oculto: Invisível, levemente deslocado e com desfoque */
.auth-form {
  display: none;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

/* Formulário Ativo: Visível, nítido e centralizado */
.auth-form.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}