/* ===================================================
   cadastro.css — Lista de Espera AprovaEnem
   =================================================== */

.waitlist-body {
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(239,68,68,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(249,115,22,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e1a 0%, #0f0a0a 50%, #0a0e1a 100%);
}

.waitlist-container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-header {
  margin-bottom: 2.5rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo span {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

/* Glassmorphism Card */
.waitlist-card {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.waitlist-card h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.waitlist-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field-group label i {
  color: #ef4444; /* Vermelho urgência */
  font-size: 0.85rem;
}

.field-wrapper {
  position: relative;
}

.field-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.field-wrapper input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  background: rgba(17, 24, 39, 0.8);
}

.field-wrapper input::placeholder {
  color: var(--text-muted);
}

.field-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
  display: block;
}

.btn-waitlist {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  gap: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.3);
}

.btn-waitlist:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.5);
}

.form-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.form-disclaimer i {
  color: #10b981;
}

/* Success Panel */
.success-panel {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  text-align: center;
  animation: fade-in-up 0.5s ease forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  z-index: 1;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.success-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.success-panel h1 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.success-panel p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .waitlist-card {
    padding: 2.5rem 1.5rem;
  }
}
