/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b0f14;
  color: white;
  overflow-x: hidden;
  position: relative;
  padding: 20px 0;
}

/* ================= FUNDO DECORATIVO ================= */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: #ff4a00;
  top: -150px;
  left: -100px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: #ff6a33;
  bottom: -120px;
  right: -80px;
}

/* ================= CONTAINER ================= */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  padding: 20px;
}

/* ================= BOTÃO VOLTAR ================= */
.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1e293b;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn-voltar:hover {
  background: rgba(255, 60, 0, 0.1);
  border-color: #ff4a00;
  color: #ff4a00;
  transform: translateX(-4px);
}

/* ================= CARD ================= */
.cadastro-card {
  width: 100%;
  padding: 40px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid #1e293b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
}

.cadastro-card:hover {
  border-color: #334155;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ÍCONE TOPO */
.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff4a00, #ff6a33);
  font-size: 24px;
  color: white;
}

h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 4px;
  color: #f1f5f9;
}

.subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 28px;
  font-size: 14px;
}

/* ================= INPUTS ================= */
.input-box {
  position: relative;
  margin-bottom: 14px;
}

.input-box > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #4b5563;
  font-size: 14px;
  z-index: 2;
}

.input-box input {
  width: 100%;
  padding: 14px 44px 14px 42px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #0f172a;
  color: white;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
}

.input-box input:focus {
  border-color: #ff4a00;
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.12);
  background: #111827;
}

.input-box input::placeholder {
  color: #4b5563;
}

/* Esconde o olhinho nativo do navegador (Edge / Chrome) */
.input-box input::-ms-reveal,
.input-box input::-ms-clear {
  display: none;
}

.input-box input::-webkit-credentials-auto-fill-button,
.input-box input::-webkit-clear-button {
  display: none !important;
}

/* ================= BOTÃO ================= */
/* ================= TOGGLE SENHA ================= */
.toggle-senha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 14px;
  transition:
    color 0.2s,
    background 0.2s;
  z-index: 3;
  line-height: 1;
}

.toggle-senha:hover {
  color: #ff4a00;
  background: rgba(255, 60, 0, 0.1);
}

.btn-cadastrar {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4a00, #d94300);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s;
}

.btn-cadastrar:hover {
  background: linear-gradient(135deg, #d94300, #ba3300);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 60, 0, 0.35);
}

.btn-cadastrar:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

/* ================= CONFIRMACAO EMAIL ================= */
.email-confirmacao-step {
  margin-top: 6px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  background: rgba(8, 47, 73, 0.28);
  padding: 20px 16px;
  text-align: center;
}

.email-confirmacao-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  font-size: 24px;
}

.email-confirmacao-step h2 {
  font-size: 19px;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.email-confirmacao-texto {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.email-confirmacao-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-reenviar-confirmacao {
  margin-top: 0;
}

.btn-ja-confirmei {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  text-decoration: none;
  color: #cbd5e1;
  background: #0f172a;
  transition: 0.25s;
}

.btn-ja-confirmei:hover {
  border-color: #38bdf8;
  background: #102334;
  color: #e2e8f0;
}

.email-confirmacao-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #94a3b8;
}

.email-confirmacao-status.is-success {
  color: #22c55e;
}

.email-confirmacao-status.is-error {
  color: #fb7185;
}

/* ================= DIVISOR ================= */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0 16px;
  gap: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #1e293b;
}

.divider span {
  color: #4b5563;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================= BOTÃO GOOGLE ================= */
.btn-google {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.btn-google:hover {
  background: #1a2742;
  border-color: #4285f4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.18);
}

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

.btn-google svg {
  flex-shrink: 0;
}

/* ================= LINK ================= */
.login-link {
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.login-link a {
  color: #ff4a00;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.login-link a:hover {
  color: #ff6a33;
  text-decoration: underline;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 500px) {
  .container {
    padding: 16px;
  }

  .cadastro-card {
    padding: 28px 24px;
  }
}

/* ================= UPGRADE VISUAL 2026 ================= */
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(
      circle at 86% -6%,
      rgba(255, 90, 31, 0.24),
      transparent 26%
    ),
    radial-gradient(
      circle at 14% 92%,
      rgba(56, 189, 248, 0.15),
      transparent 24%
    ),
    linear-gradient(160deg, #060b12, #0c111b 48%, #070b12);
}

.cadastro-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(62, 86, 115, 0.58);
  background: linear-gradient(
    165deg,
    rgba(13, 22, 35, 0.95),
    rgba(14, 21, 33, 0.95)
  );
}

.cadastro-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 100, 48, 0.28),
    transparent 70%
  );
  pointer-events: none;
}

h1 {
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 30px;
  letter-spacing: 0.03em;
}

.subtitle {
  color: #91a6bf;
}

.auth-highlights {
  margin: -8px 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-highlights span {
  border: 1px solid rgba(64, 88, 116, 0.65);
  background: rgba(11, 19, 31, 0.8);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  color: #a7bbd4;
  font-size: 11px;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.auth-highlights i {
  color: #ff865b;
  font-size: 12px;
}

.input-box input {
  border-color: rgba(62, 88, 117, 0.6);
  background: #0b1524;
}

.btn-cadastrar {
  background: linear-gradient(135deg, #ff6633, #ff8b3d);
}

.btn-cadastrar:hover {
  background: linear-gradient(135deg, #ff5a24, #ff7d2f);
}

.btn-google {
  border-color: rgba(63, 89, 118, 0.64);
  background: #0b1524;
}

.login-link {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .auth-highlights {
    grid-template-columns: 1fr;
  }

  .auth-highlights span {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* ================= CONTRASTE + DINAMISMO 2026-2 ================= */
body {
  background:
    radial-gradient(
      circle at 90% -8%,
      rgba(255, 119, 64, 0.42),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 100%,
      rgba(82, 187, 255, 0.24),
      transparent 28%
    ),
    linear-gradient(160deg, #09111d, #111d2f 48%, #09111d);
}

.circle {
  opacity: 0.24;
}

.btn-voltar {
  background: rgba(16, 29, 46, 0.86);
  border-color: rgba(74, 106, 143, 0.78);
  color: #c2d6ec;
}

.btn-voltar:hover {
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.22);
}

.cadastro-card {
  border-color: rgba(93, 125, 161, 0.68);
  background: linear-gradient(
    165deg,
    rgba(18, 30, 47, 0.95),
    rgba(15, 26, 42, 0.96)
  );
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(172, 203, 238, 0.12);
}

.cadastro-card:hover {
  border-color: rgba(255, 145, 96, 0.66);
  transform: translateY(-2px);
}

h1 {
  color: #f6fbff;
  text-shadow: 0 2px 14px rgba(56, 189, 248, 0.16);
}

.subtitle {
  color: #c1d4ea;
}

.auth-highlights span {
  border-color: rgba(89, 118, 151, 0.72);
  background: rgba(17, 31, 49, 0.82);
  color: #d2e0f0;
}

.input-box > i {
  color: #86a6ca;
}

.input-box input {
  border-color: rgba(79, 111, 149, 0.72);
  background: #101d31;
  color: #f4f9ff;
}

.input-box input::placeholder {
  color: #8ca7c8;
}

.input-box input:focus {
  box-shadow:
    0 0 0 3px rgba(255, 106, 0, 0.2),
    0 8px 22px rgba(12, 29, 49, 0.45);
}

.btn-google {
  color: #eff7ff;
  background: #111f34;
}

.login-link {
  color: #aec3da;
}

@keyframes authFadeUpCadastro {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authCardPopCadastro {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.container {
  animation: authFadeUpCadastro 0.48s ease both;
}

.cadastro-card {
  animation: authCardPopCadastro 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card-icon,
h1,
.subtitle,
.auth-highlights span,
form .input-box,
.btn-cadastrar,
.divider,
.btn-google,
.login-link {
  opacity: 0;
  animation: authFadeUpCadastro 0.5s ease forwards;
}

.card-icon {
  animation-delay: 60ms;
}
h1 {
  animation-delay: 90ms;
}
.subtitle {
  animation-delay: 120ms;
}
.auth-highlights span:nth-child(1) {
  animation-delay: 160ms;
}
.auth-highlights span:nth-child(2) {
  animation-delay: 190ms;
}
.auth-highlights span:nth-child(3) {
  animation-delay: 220ms;
}
form .input-box:nth-of-type(1) {
  animation-delay: 250ms;
}
form .input-box:nth-of-type(2) {
  animation-delay: 280ms;
}
form .input-box:nth-of-type(3) {
  animation-delay: 310ms;
}
form .input-box:nth-of-type(4) {
  animation-delay: 340ms;
}
form .input-box:nth-of-type(5) {
  animation-delay: 370ms;
}
form .input-box:nth-of-type(6) {
  animation-delay: 400ms;
}
.btn-cadastrar {
  animation-delay: 430ms;
}
.divider {
  animation-delay: 450ms;
}
.btn-google {
  animation-delay: 480ms;
}
.login-link {
  animation-delay: 520ms;
}

@media (prefers-reduced-motion: reduce) {
  .container,
  .cadastro-card,
  .card-icon,
  h1,
  .subtitle,
  .auth-highlights span,
  form .input-box,
  .btn-cadastrar,
  .divider,
  .btn-google,
  .login-link {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
