/* =========================================================
   BoxTV Gestor — Login Neon Premium (com TMDB)
   ========================================================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0b0f17;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* =============== Estrutura principal =============== */
.login-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* =============== Fundo esquerdo (imagens TMDB) =============== */
.login-left {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.bg-transition {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.bg-transition.show {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(0,191,255,0.18), rgba(0,0,0,0.85) 70%);
  z-index: 1;
  animation: pulseGlow 6s infinite alternate;
}

/* =============== Área direita (formulário) =============== */
.login-right {
  flex: 0.45;
  background: #0e1218;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 0 25px rgba(0,191,255,0.12);
}

.login-form {
  width: 80%;
  max-width: 420px;
  background: rgba(15,20,30,0.85);
  border-radius: 14px;
  padding: 45px;
  box-shadow: 0 0 25px rgba(0,191,255,0.08);
  animation: fadeIn 0.8s ease;
}

/* =============== Logo e título =============== */
.logo {
  filter: drop-shadow(0 0 8px rgba(0,191,255,0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(0,191,255,0.7));
}

h4 {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* =============== Textos secundários e legendas =============== */
.text-muted {
  color: rgba(200, 220, 255, 0.65) !important;
  text-shadow: 0 0 6px rgba(0, 191, 255, 0.15);
}

.login-form small,
.login-form p {
  color: rgba(200, 220, 255, 0.7) !important;
}

.login-form .text-center small.text-muted {
  color: rgba(150, 200, 255, 0.6) !important;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(0,191,255,0.2);
}

.login-form p.text-muted {
  color: rgba(220, 230, 255, 0.75) !important;
  font-size: 0.9rem;
  margin-top: -5px;
  text-shadow: 0 0 10px rgba(0,191,255,0.25);
}

/* =============== Inputs =============== */
.form-control {
  background: #10151f;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 12px 14px;
}

.form-control:focus {
  border-color: #00bfff;
  box-shadow: 0 0 10px rgba(0,191,255,0.4);
  background: #0d141e;
  color: #fff;
  outline: none;
}

/* =============== Botão principal =============== */
.btn-login {
  background: linear-gradient(135deg, #00bfff, #0066ff);
  border: none;
  border-radius: 10px;
  padding: 13px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0,191,255,0.4);
}

.btn-login:hover {
  background: linear-gradient(135deg, #17e7ff, #0077ff);
  box-shadow: 0 0 20px rgba(0,191,255,0.7);
  transform: translateY(-2px);
}

/* =============== Alertas (erro de login) =============== */
.alert-danger {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  color: #ff6666;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(255, 100, 100, 0.15);
}

/* =============== Animações =============== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: inset 0 0 40px rgba(0,191,255,0.1); }
  100% { box-shadow: inset 0 0 80px rgba(0,191,255,0.35); }
}

/* =============== Responsividade =============== */
@media (max-width: 992px) {
  .login-left { display: none; }
  .login-right { flex: 1; }
  .login-form { background: transparent; box-shadow: none; padding: 30px; }
}

/* =============== Créditos TMDB =============== */
.tmbd-credit {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.8rem;
  color: rgba(180, 200, 255, 0.6);
  text-shadow: 0 0 6px rgba(0,191,255,0.3);
}

.tmbd-credit img {
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.8;
}
