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

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

/* Container principal: logo + formulário lado a lado */
.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
  width: 90%;
}

/* Área da logo */
.logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 250px;
}

.logo {
  width: 250px;
  max-width: 100%;
  filter: drop-shadow(0px 0px 8px rgba(255,255,255,0.25));
  opacity: 0;
  transform: translateX(-80px);
  animation: slideFromLeft 1.2s ease forwards;
}

@keyframes slideFromLeft {
  0% { opacity: 0; transform: translateX(-80px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Área do token */
.token-area {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(80px);
  animation: slideFromRight 1.2s ease forwards;
  animation-delay: 0.2s;
}

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

/* Caixa do token */
.container {
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0px 6px 18px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.container h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #2c5364;
}

.container p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group input {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #2c5364;
  outline: none;
}

button {
  background: #2c5364;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #203a43;
  transform: scale(1.02);
}

.mensagem {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.mensagem.sucesso { color: green; }
.mensagem.erro { color: red; }

/* Responsividade */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    text-align: center;
  }

  .logo-area {
    margin-bottom: 2rem;
  }

  .logo {
    width: 180px;
    animation-delay: 0s;
  }

  .token-area {
    animation-delay: 0.1s;
  }
}
