/* ===========================
   ESTILO GERAL
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(160deg, #111, #222, #2c2c2c);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
  padding: 20px;
}

/* ===========================
   CONTAINER
=========================== */
.container {
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: #1c1c1c;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* ===========================
   FORMULÁRIOS
=========================== */
.form-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.form-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #d4af37;
}

.subtexto {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input {
  background: #2b2b2b;
  border: none;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
}

form input:focus {
  background: #333;
  border: 1px solid #d4af37;
}

form button {
  background: #d4af37;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #e5bf4b;
}

/* ===========================
   LINKS DE TROCA
=========================== */
.trocar {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #ccc;
}

.trocar a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}

.trocar a:hover {
  text-decoration: underline;
}

/* ===========================
   TOASTS
=========================== */
#toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  animation: fadeIn 0.5s, fadeOut 0.5s 3.5s;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

/* ===========================
   ANIMAÇÕES
=========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 480px) {
  .container {
    padding: 25px 20px;
  }

  h1 {
    font-size: 1.4rem;
  }
}
/* ===========================
   LINHA DIAGONAL ANIMADA
=========================== */
body::before,
body::after {
  content: "";
  position: fixed;
  bottom: -20%;
  left: -20%;
  width: 3px;               /* espessura da linha */
  height: 200%;             /* comprimento total (sobe na diagonal) */
  background: rgba(212, 175, 55, 0.6); /* dourado semitransparente */
  transform: rotate(45deg); /* cria a diagonal */
  z-index: 0;               /* fica atrás de tudo */
  animation: diagonalMove 6s ease-in-out infinite;
}

body::after {
  left: -25%;               /* pequena variação para a segunda linha */
  animation-delay: 1.5s;    /* começa um pouco depois */
  opacity: 0.7;
}

/* Animação da linha: vai, para, volta */
@keyframes diagonalMove {
  0% {
    transform: rotate(45deg) translateX(0);
  }
  40% {
    transform: rotate(45deg) translateX(80vw);
  }
  50% {
    transform: rotate(45deg) translateX(80vw);
  }
  90% {
    transform: rotate(45deg) translateX(0);
  }
  100% {
    transform: rotate(45deg) translateX(0);
  }
}
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* bloqueia scroll vertical e horizontal */
    width: 100vw;     /* largura da viewport */
    height: 100vh;    /* altura da viewport */
    background-color: #111; /* fundo escuro (ou sua cor) */
}
