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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, #0a0f1a, #0e172a);
  overflow: hidden;
}

/* ========================= */
/* CONTAINER */
/* ========================= */
.formulario {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: white;
}

.title {
  text-align: center;
  font-size: 1.9rem;
  line-height: 2rem;
  font-weight: 700;
  color: #00698f;
  margin-bottom: 20px;
}

img {
  display: block;
  margin: -35px auto -20px auto;
  height: 170px;
}

/* ========================= */
/* ETAPAS */
/* ========================= */
.etapa {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

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

/* ========================= */
/* INPUTS */
/* ========================= */
.caixa-formulario {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  padding-right: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 15px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.3);
}

/* Ícones */
.caixa-formulario i {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
}

/* ========================= */
/* SENHA */
/* ========================= */
.senha-container {
  position: relative;
}

.ver-senha {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 5;
  cursor: pointer;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.ver-senha:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ========================= */
/* TERMOS */
/* ========================= */
.caixa-formulario-termos {
  font-size: 14px;
  margin-bottom: 15px;
  padding: 0 5px;
}

.caixa-formulario-termos a {
  color: #eee;
}

/* ========================= */
/* LINKS */
/* ========================= */
.link-registro {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.link-registro a {
  font-weight: bold;
  color: #00d9ff;
  text-decoration: none;
}

.link-registro a:hover {
  text-decoration: underline;
}

/* ========================= */
/* BOTÕES */
/* ========================= */
button[type="button"],
button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background-color: #00d9ff;
  color: #0e0c0c;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
  transition: 0.3s ease;
}

button[type="button"]:hover,
button[type="submit"]:hover {
  background-color: #00bcd4;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Botões lado a lado (Voltar / Criar conta) */
.etapa div[style*="display:flex"] {
  display: flex !important;
  gap: 10px;
}

#btn-voltar {
  background-color: #444;
  color: #fff;
}

#btn-voltar:hover {
  background-color: #555;
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 480px) {
  body {
    padding: 20px;
    flex-direction: column;
  }

  .formulario {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
  }

  img {
    height: 140px;
    margin-top: -20px;
    margin-bottom: -10px;
  }

  .title {
    font-size: 1.6rem;
  }

  input {
    font-size: 14px;
    padding: 12px 16px;
  }

  button {
    font-size: 16px;
    padding: 11px;
  }
}

/* ========================= */
/* NOTEBOOKS */
/* ========================= */
@media (min-width: 1024px) and (max-width: 1440px) {
  body {
    padding-block: 30px;
    min-height: 100dvh;
  }

  img {
    margin-top: -55px;
    margin-bottom: -40px;
    height: 170px;
  }

  .formulario {
    margin: 0 auto;
    width: min(48vw, 720px);
    max-height: calc(100dvh - 50px);
    overflow: auto;
  }
}


/* Corrige fundo branco do autofill (Chrome/Edge) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: white !important; /* cor do texto */
  box-shadow: 0 0 0px 1000px rgba(255,255,255,0.1) inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: white;
}

/* Firefox */
input:-moz-autofill {
  box-shadow: 0 0 0px 1000px rgba(255,255,255,0.1) inset !important;
  -moz-text-fill-color: white !important;
}


html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: auto; /* no mobile, permite rolar se precisar */
}

/* força o card ocupar melhor a tela */
@media (max-width: 480px) {
  .formulario {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0 auto;
  }
}
