/* ── Login Overlay & Slideshow ───────────────────────────────── */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Move a caixa para a direita */
  padding-right: 12%; /* Espaçamento da margem direita */
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

.login-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out; /* Reduzi p/ 2s para aparecer mais rápido */
  overflow: hidden;
  background-color: #000;
  background-position: -9999px -9999px; /* Joga o azulejo de fundo original para fora da tela */
  background-repeat: no-repeat;
}

/* Camada 1: Fundo borrado para completar a tela com a cor predominante */
.login-slide::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.6);
  z-index: 1;
}

/* Camada 2: Imagem do cachorro nítida, preservando proporções sem cortar (contain) */
.login-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover; /* Cobre a tela toda sem bordas */
  background-repeat: no-repeat;
  background-position: left center; /* Foca na pessoa/cachorro que estão à esquerda nas fotos */
  z-index: 2;
}

.login-slide.active {
  opacity: 0.9; /* Deixando um pouco mais visível para valorizar as novas fotos coloridas */
}

.login-box-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  animation: fadeInDown 0.8s ease-out;
}

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

.login-box {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* Sombra super suave premium */
  color: #2d3748; /* Texto escuro elegante */
}

.login-logo {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1a202c;
  margin: 0;
}

.form-group {
  margin-bottom: 22px;
}

.login-box label {
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

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

.input-with-icon svg {
  position: absolute;
  left: 18px;
  color: #a0aec0;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  height: 54px;
  padding-left: 50px;
  padding-right: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
}

.input-with-icon input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.input-with-icon input::placeholder {
  color: #cbd5e0;
  font-weight: 500;
}

.btn-login {
  margin-top: 30px;
  height: 54px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--color-primary);
  border: none;
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35);
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26, 86, 219, 0.45);
  background: #1e4bb2;
}

.btn-block {
  width: 100%;
  display: block;
}
