/* ═══════════════════════════════════════════════════════════════════
   PAINEL PEDAGÓGICO — LOGIN PAGE
   Max Inteligência | Design Premium v2.0
═══════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4759f5;
  --primary-dark: #3345d6;
  --accent-purple: #a855f7;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 20px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #0a0e27;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background com gradiente animado ──────────────────────────── */
.login-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, #0a0e27 0%, #1a0a2e 50%, #0a0e27 100%);
  background-size: 400% 400%;
  animation: gradient-breathe 8s ease infinite;
}

@keyframes gradient-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── Partículas com glow pulsante ───────────────────────────────── */
.login-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(71, 89, 245, 0.35);
  animation: float-particle linear infinite, pulse-glow 4s ease-in-out infinite;
}

@keyframes float-particle {
  0%   { transform: translateY(0) scale(1);   opacity: 0.5; }
  50%  { transform: translateY(-80px) scale(1.3); opacity: 0.25; }
  100% { transform: translateY(0) scale(1);   opacity: 0.5; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(71, 89, 245, 0.4); }
  50%       { box-shadow: 0 0 18px rgba(71, 89, 245, 0.7), 0 0 32px rgba(168, 85, 247, 0.3); }
}

/* ── Card glassmorphism ─────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: card-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Badge de versão ────────────────────────────────────────────── */
.version-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  padding: 0.2rem 0.65rem;
  background: rgba(71, 89, 245, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

/* ── Logo ───────────────────────────────────────────────────────── */
.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.login-logo {
  height: 58px;
  object-fit: contain;
}

/* ── Header ─────────────────────────────────────────────────────── */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e8ecff;
  margin-bottom: 0.75rem;
}

.login-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ── Alert ──────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* ── Divider ────────────────────────────────────────────────────── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Botão Google com aura animada ──────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: btn-aura 3s ease-in-out infinite;
}

@keyframes btn-aura {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(71, 89, 245, 0), 0 4px 20px rgba(71, 89, 245, 0.25);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(71, 89, 245, 0.15), 0 4px 30px rgba(168, 85, 247, 0.4);
  }
}

.btn-google:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(71, 89, 245, 0.3),
    0 8px 32px rgba(71, 89, 245, 0.35);
}

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

/* ── Info Text ──────────────────────────────────────────────────── */
.login-info {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.login-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 500;
}

.login-footer img {
  opacity: 0.6;
  filter: brightness(0.8);
}

/* ── Responsivo ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem;
    border-radius: 14px;
  }

  .login-header h1 {
    font-size: 1.4rem;
  }
}
