/* ================================
   BASE DO LAYOUT
================================ */

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 16px;
  background: url("https://kodilife.com/audiolivro/uploads/kodilife-escritor-banner.jpg") center/cover no-repeat;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.cadastro-card {
  width: 100%;
  max-width: 460px;
  padding: 28px;
  background: rgba(15,23,42,0.88);
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 28px 60px rgba(0,0,0,0.65);
  z-index: 10;
  color: #e2e8f0;
  animation: fade 0.8s ease;
}

@keyframes fade {
  from {opacity:0; transform:translateY(20px);}
  to {opacity:1; transform:translateY(0);}
}

/* =============================
   TÍTULOS
============================= */

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  text-align: center;
}

.sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
}

/* =============================
   ETAPAS
============================= */

.steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.step {
  width: 10px;
  height: 10px;
  background: #475569;
  border-radius: 50%;
}

.step.active {
  background: #a855f7;
}

/* =============================
   FORMULÁRIO
============================= */

.group {
  margin-bottom: 16px;
}

label {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 4px;
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
}

input:focus {
  border-color: #a855f7;
  outline: none;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.45);
}

/* GRID NOME + SOBRENOME */

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =============================
   FORÇA DA SENHA
============================= */

.forca {
  height: 6px;
  margin-top: 6px;
  background: #475569;
  border-radius: 5px;
}

.forca.fraco { background: #ef4444; }
.forca.medio { background: #eab308; }
.forca.forte { background: #22c55e; }

/* =============================
   BOTÃO
============================= */

.btn {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #6366f1, #a855f7);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(79,70,229,0.6);
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* =============================
   AFILIADO
============================= */

.afiliado {
  margin-top: 16px;
  background: rgba(79,70,229,0.2);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(79,70,229,0.35);
  text-align: center;
}

/* =============================
   ERRO
============================= */

.erro {
  background: rgba(239,68,68,0.2);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,0.4);
  margin-bottom: 16px;
  color: #fecaca;
  text-align: center;
}

/* LOGIN LINK */

.login {
  text-align: center;
  margin-top: 18px;
}

.login a {
  color: #c4b5fd;
  text-decoration: none;
}

.login a:hover {
  text-decoration: underline;
}
