* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: radial-gradient(1200px 520px at 10% -10%, rgba(95, 128, 165, 0.12), transparent 60%), #f5f7fb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #15353d;
}

.container {
  background: #fff;
  width: 100%;
  max-width: 430px;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(2, 35, 42, 0.10);
  position: relative;
}

.logo {
  display: block;
  max-width: 180px;
  margin: 0 auto 20px;
}

.progress-bar {
  height: 4px;
  background: #d6e6e3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress {
  height: 100%;
  width: 0%;
  background: #5f80a5;
  transition: width 0.4s ease;
}

.step {
  display: none;
  text-align: center;
  animation: fadeSlide 0.4s ease;
}

.step.active {
  display: block;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

h2 {
  color: #20444a;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border: 1.5px solid #d1e2df;
  border-radius: 10px;
  background: #f6fbfa;
  font-size: 1rem;
  color: #17363d;
  transition: border 0.3s ease, background 0.3s ease;
}

input:focus,
select:focus {
  border: 1.5px solid #5f80a5;
  background: #fff;
  outline: none;
}

.password-manager-username {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0.01 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

button,
.btn-secondary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.email-verify {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 4px 0 10px;
}

.email-verify input {
  text-align: center;
  letter-spacing: 4px;
}

.mini-action {
  padding: 11px 12px;
  border-radius: 8px;
  background: #20444a;
  color: #fff;
}

@media (min-width: 520px) {
  .email-verify {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

#voltar {
  background: #d6dedd;
  color: #3f585d;
}

#voltar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#avancar,
#finalizar,
.btn-primary {
  background: #5f80a5;
  color: #fff;
}

#avancar:hover,
#finalizar:hover,
.btn-primary:hover {
  background: #4d6f96;
  box-shadow: 0 6px 14px rgba(95, 128, 165, 0.26);
}

.btn-secondary {
  background: #e9f6f3;
  color: #4d6f96;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: #dbe6f2;
}

.alerta {
  margin: 0 0 12px;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  background: #ffe9e7;
  color: #af2e2e;
  border: 1px solid #ffd1ce;
}

.alerta.ok {
  background: #edf3fb;
  color: #5f80a5;
  border: 1px solid #c7d6e8;
}

.error {
  color: #d63a3a;
  font-size: 0.9rem;
  margin-top: 5px;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.3s ease;
}

.error.show {
  opacity: 1;
}

.status {
  font-size: 0.95rem;
  color: #3f565b;
  margin: 5px 0;
  min-height: 22px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.status.show {
  opacity: 1;
}

.status.loading {
  color: #51606c;
}

.status.success {
  color: #168a5a;
  font-weight: 600;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
  font-size: 0.9rem;
  color: #375056;
}

.senha-forca {
  height: 6px;
  border-radius: 4px;
  background: #d5e3e1;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.senha-forca.fraca {
  background: #e15a5a;
}

.senha-forca.media {
  background: #f0c64d;
}

.senha-forca.forte {
  background: #8fb0d4;
}

.resumo {
  text-align: left;
  background: #f4fbfa;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #24464d;
  margin-bottom: 15px;
  border: 1px solid #e2f0ee;
}

.resumo div {
  margin-bottom: 8px;
}

.verify-card {
  text-align: center;
  background: #f8fffd;
  border: 1px solid #d7e2ee;
  border-radius: 14px;
  padding: 20px 16px;
}

/* Premium registration refresh */
body {
  background:
    radial-gradient(640px 460px at 12% -8%, rgba(95, 128, 165, 0.32), transparent 64%),
    radial-gradient(620px 420px at 88% 0%, rgba(49, 57, 79, 0.50), transparent 64%),
    linear-gradient(135deg, #0c111d, #121a2b 52%, #070a12) !important;
  color: #f6f8fb;
  padding: 86px 18px 34px;
}

.container {
  position: relative;
  max-width: 500px;
  padding: 32px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 26px !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  overflow: visible;
}

.register-kicker {
  margin: -4px auto 18px;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 700;
}

.register-glow {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
}

.register-glow-a {
  width: 220px;
  height: 220px;
  left: -96px;
  top: 58px;
  background: rgba(95, 128, 165, 0.26);
  animation: registerFloat 6s ease-in-out infinite;
}

.register-glow-b {
  width: 170px;
  height: 170px;
  right: -82px;
  bottom: 42px;
  background: rgba(255, 255, 255, 0.08);
  animation: registerFloat 7s ease-in-out infinite reverse;
}

.logo {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .22));
}

h2 {
  color: #fff;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.12;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

select option {
  background: #111827;
  color: #fff;
}

input:focus {
  border-color: rgba(143, 176, 212, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(95, 128, 165, 0.22) !important;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.10);
}

.progress,
#avancar,
#finalizar,
.btn-primary {
  background: linear-gradient(135deg, #5f80a5, #31394f) !important;
}

#voltar,
.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #dce9f8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.checkbox,
.status,
.resumo {
  color: rgba(246, 248, 251, 0.76);
}

.senha-forca.forte {
  background: #5f80a5;
}

.verify-card {
  background: rgba(95, 128, 165, 0.14) !important;
  border-color: rgba(95, 128, 165, 0.24) !important;
}

.address-details {
  display: none;
  animation: fadeSlide .32s ease;
}

.address-details.show {
  display: block;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
}

.step-note {
  margin: -8px 0 14px;
  color: rgba(246, 248, 251, 0.72);
  font-size: .9rem;
  line-height: 1.45;
}

.terms-box {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(246,248,251,.82);
}

.terms-box strong {
  color: #fff;
}

.terms-box p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
}

body.is-submitting::after {
  content: "Preparando sua conta...";
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 18, .72);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(12px);
}

@keyframes registerFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -14px, 0) scale(1.04); }
}

.verify-card p {
  margin-bottom: 10px;
  color: #3a565c;
}

.email-mask {
  font-size: 1.02rem;
  font-weight: 700;
  color: #06685f;
}

.muted {
  font-size: 0.85rem;
  color: #5f7b7f;
}

.verify-form {
  margin-top: 14px;
}

.codigo-input {
  text-align: center;
  letter-spacing: 4px;
  font-size: 1.1rem;
}

.verify-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-link {
  background: transparent;
  border: none;
  color: #047970;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link.danger {
  color: #b53b3b;
}

@media (max-width: 480px) {
  .container {
    padding: 24px 15px;
    border-radius: 12px;
  }

  h2 {
    font-size: 1.08rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}
