/* ═══════════════════════════════════════════════════════════════════
   LEITURAMAX — LOGIN PAGE
   Max Inteligência | v2.0
═══════════════════════════════════════════════════════════════════ */

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

:root {
  --primary: #A855F7;
  --primary-dark: #9333ea;
  --secondary: #2dd4bf;
  --danger: #f43f5e;
  --radius: 20px;
}

body {
  font-family: 'Manrope', 'Inter', sans-serif;
  background: #020617;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background 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, #020617 0%, #0f0520 50%, #020617 100%);
  background-size: 400% 400%;
  animation: gradient-breathe 10s ease infinite;
}

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

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

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.25);
  animation: float-particle linear infinite, pulse-glow 5s ease-in-out infinite;
}

@keyframes float-particle {
  0%   { transform: translateY(0) scale(1);      opacity: 0.5; }
  50%  { transform: translateY(-70px) scale(1.2); opacity: 0.2; }
  100% { transform: translateY(0) scale(1);      opacity: 0.5; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(168, 85, 247, 0.3); }
  50%       { box-shadow: 0 0 16px rgba(168, 85, 247, 0.6), 0 0 28px rgba(45, 212, 191, 0.2); }
}

/* ── Card ───────────────────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  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.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: card-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ── Badge versão ───────────────────────────────────────────────── */
.version-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  padding: 0.2rem 0.65rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(168, 85, 247, 0.9);
  letter-spacing: 0.06em;
}

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

.login-logo {
  width: 163px;
  height: 135px;
  object-fit: contain;
}

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

.login-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #A855F7;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.login-header p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

/* ── 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(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.alert-success {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #5eead4;
}

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

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

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

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

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

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

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

/* ── 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.2);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
}

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

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

  .btn-google {
    font-size: 0.9rem;
    padding: 0.9rem 1.25rem;
  }
}
