/* Layout da Tela de Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #e2e8f0 100%);
  margin: 0;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  padding: 36px 30px;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-wrapper {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.login-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.login-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.login-header .subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Alerta de erro */
.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.login-alert.hidden {
  display: none;
}

/* Formulário e Espaçamento dos Campos */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px; /* Espaço uniforme entre os campos */
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Espaço entre label e input */
  margin-bottom: 0;
}

/* Inputs com Ícones */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.input-with-icon .form-control {
  padding-left: 40px;
  padding-right: 40px;
  height: 44px;
  width: 100%;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-eye:hover {
  color: #475569;
}

/* Opções (Lembrar e Esqueceu senha) */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin: 4px 0 6px 0;
}

/* Checkbox Compacto e Delicado */
/* Checkbox Moderno e Customizado */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* Oculta o checkbox nativo feio */
.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* O quadradinho estilizado */
.custom-box {
  height: 16px;
  width: 16px;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Efeito ao passar o mouse */
.checkbox-container:hover .custom-box {
  border-color: #065f46;
  background-color: #f0fdf4;
}

/* Quando marcado: fundo verde esmeralda e borda verde */
.checkbox-container input:checked ~ .custom-box {
  background-color: #065f46;
  border-color: #065f46;
  box-shadow: 0 1px 3px rgba(6, 95, 70, 0.25);
}

/* O ícone de check em formato vetorial suave */
.custom-box::after {
  content: "";
  display: none;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -0.5px);
}

/* Exibe o check quando selecionado */
.checkbox-container input:checked ~ .custom-box::after {
  display: block;
}

.link-esqueceu {
  color: #065f46;
  text-decoration: none;
  font-weight: 600;
}

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

/* Botão Submit */
.btn-login-submit {
  width: 100%;
  height: 46px;
  background-color: #065f46;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login-submit:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 0.75rem;
  color: #94a3b8;
}