/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #6C63FF, #4A47A3);
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* Container principal */
.container {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(12px);
  width: 350px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: fadeIn 0.8s ease;
}

/* Logo */
.logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.logo h1 {
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: #fff;
}

.subtitle {
  color: #dcdcdc;
  font-size: 13px;
  margin-bottom: 20px;
}

/* Formulários */
.forms {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

form h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
}

input::placeholder {
  color: #ddd;
}

input:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

/* Botão */
button {
  width: 100%;
  background: #6C63FF;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #5148d1;
  transform: scale(1.05);
}

/* Mensagem de erro */
.error-message {
  text-align: center;
  margin-bottom: 15px;
  height: 25px;
}

.error-message span {
  display: inline-block;
  background-color: rgba(255, 77, 77, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.error-message span.show {
  opacity: 1;
}

/* Animação de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
