/* ============================================================
   STYLE_LOGIN.CSS - Estilos específicos da tela de login
   ============================================================ */

/* === FUNDO GLOBAL === */
body {
  background: url('../imagens/BG_MAPA.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  font-family: var(--fonte-corpo-padrao);
}

/* === ÁREA CENTRAL VERTICAL === */
.login-tela {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === CAIXA CENTRAL DE LOGIN === */
.login-box {
  background-color: var(--vermelho-escuro);
  padding: 30px 25px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* === CAMPO DE CÓDIGO DE VERIFICAÇÃO === */
#codigo_email {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #1a1a1a !important;
}

#codigo_email:focus {
  border-color: var(--marrom-claro) !important;
  box-shadow: 0 0 15px rgba(199, 159, 95, 0.3);
  transform: scale(1.02);
  color: #000000 !important;
}

#codigo_email::placeholder {
  opacity: 0.3;
  color: #999999 !important;
}

/* === ANIMAÇÃO DE ENTRADA DA VERIFICAÇÃO === */
#codigo_email_container {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* === TÍTULO PRINCIPAL === */
.login-logo {
  font-family: var(--fonte-titulo-padrao);
  font-size: 42px;
  color: var(--marrom-claro);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-weight: normal;
}

/* === FORMULÁRIO DE LOGIN === */
.login-formulario label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.input-grupo {
  margin-bottom: 12px;
}

.login-formulario input[type="email"],
.login-formulario input[type="password"] {
  margin-bottom: 3px;
}

/* === BOTÁO DE ENTRAR CENTRALIZADO === */
.login-formulario .botao {
  display: block;
  margin: 0 auto 10px auto;
  background-color: var(--azul-medio);
  color: white;
}
.login-formulario .botao:hover {
  background-color: var(--azul-escuro);
}

/* === OPÇÕES ADICIONAIS === */
.login-opcoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.login-opcoes label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
}

/* === LINKS GERAIS === */
.login-link {
  color: var(--marrom-claro);
  text-decoration: none;
}
.login-link:hover {
  text-decoration: underline;
}



/* === CONTAINER DE SENHA COM BOTÃO === */
.senha-container {
  position: relative;
  display: flex;
  align-items: center;
}

.senha-container input {
  width: 100%;
  padding-right: 45px;
}

.btn-mostrar-senha {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-mostrar-senha:hover {
  transform: scale(1.1);
}

.btn-mostrar-senha:focus {
  outline: 2px solid var(--marrom-claro);
  outline-offset: 2px;
  border-radius: 4px;
}

.icone-olho {
  display: inline-block;
  user-select: none;
}

/* === MENSAGENS DE ERRO === */
.input-erro {
  display: none;
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* === RODAPÉ DO BLOCO DE LOGIN === */
.login-footer {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  color: #1a1a1a;
}

/* === ANIMAÇÃO SLIDE-IN === */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
