/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== VARIÁVEIS ===== */
:root {
  --cor-fundo-inicio: #0b1220;
  --cor-fundo-fim: #05070f;

  --cor-card: rgba(15, 23, 42, 0.82);
  --cor-card-hover: rgba(20, 30, 54, 0.9);
  --cor-borda: rgba(255, 255, 255, 0.08);
  --cor-borda-forte: rgba(255, 255, 255, 0.14);

  --cor-primaria: #3b82f6;
  --cor-primaria-clara: #60a5fa;
  --cor-primaria-escura: #2563eb;

  --cor-texto: #e2e8f0;
  --cor-texto-claro: #ffffff;
  --cor-texto-suave: #94a3b8;
  --cor-saudacao: #93c5fd;

  --raio-card: 20px;
  --raio-botao: 14px;

  --sombra-card:
    0 30px 90px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --sombra-botao: 0 10px 25px rgba(59, 130, 246, 0.3);

  --fonte-texto: "Inter", sans-serif;
  --fonte-destaque: "Rajdhani", sans-serif;
}

/* ===== BASE DO BODY ===== */
body {
  font-family: var(--fonte-texto);
  color: var(--cor-texto);

  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: radial-gradient(
    circle at top,
    var(--cor-fundo-inicio),
    var(--cor-fundo-fim)
  );

  position: relative;
}

/* Textura sutil de grid no fundo, dá profundidade sem poluir */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Brilho pulsante de fundo */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: radial-gradient(
    circle at 50% 30%,
    rgba(59, 130, 246, 0.1),
    transparent 60%
  );

  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

/* ===== TIPOGRAFIA ===== */
h1 {
  font-family: var(--fonte-destaque);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;

  background: linear-gradient(90deg, #ffffff, var(--cor-primaria-clara));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  margin: 10px 0;
}

h3 {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 15px;
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  color: var(--cor-texto);
  opacity: 0.85;
  line-height: 1.6;
}

/* ===== CARD BASE ===== */
.card {
  position: relative;
  z-index: 1;

  padding: 32px;
  border-radius: var(--raio-card);

  background: var(--cor-card);
  border: 1px solid var(--cor-borda);

  box-shadow: var(--sombra-card);
  backdrop-filter: blur(16px);

  text-align: center;

  animation: fadeIn 0.6s ease;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Borda com gradiente sutil ao redor do card */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--raio-card);
  padding: 1px;

  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.35),
    transparent 60%
  );

  -mask:
  -webkit-mask,
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LOGO E SAUDAÇÃO ===== */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.logo img {
  width: 64px;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.55));
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.greeting {
  margin-top: 10px;
  color: var(--cor-saudacao);
  font-weight: 600;
  opacity: 0.95;
}

/* ===== BOTÕES ===== */
button {
  width: 100%;
  padding: 15px;
  margin-top: 14px;

  border: none;
  border-radius: var(--raio-botao);

  font-family: var(--fonte-texto);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;

  position: relative;
  overflow: hidden;

  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: 0.35s ease;
}

button:hover::after {
  left: 100%;
}

button:hover {
  transform: translateY(-2px) scale(1.015);
}

button:active {
  transform: scale(0.98);
}

.btn-main {
  background: linear-gradient(
    90deg,
    var(--cor-primaria),
    var(--cor-primaria-escura)
  );
  color: var(--cor-texto-claro);
  box-shadow: var(--sombra-botao);
}

.btn-main:hover {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
}

.btn-sec:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--cor-borda-forte);
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}