@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(90deg, rgba(10, 4, 4, 1) 0%, rgba(37, 42, 99, 1) 98%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.form-box {
  background: rgba(26, 29, 36, 0.9);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
  color: #e5e7eb;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #6366f1;
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  color: #e5e7eb;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: #8b8f9c;
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: -15px;
  font-size: 13px;
  color: #6366f1;
}

.input-group input:focus {
  border-color: #6366f1;
}

.btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border: none;
  padding: 12px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.toggle-text {
  text-align: center;
  margin-top: 15px;
  color: #9ca3af;
}

.toggle-text a {
  color: #6366f1;
  cursor: pointer;
}

/* ===== CONTROLE DE FORMULÁRIOS ===== */
form {
  display: none;
}

form.active {
  display: block;
}

@media (max-width: 480px) {
  .form-box {
    padding: 30px 20px;
  }
}

/* Remove autofill do Chrome */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 29, 36, 1) inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
  transition: background-color 9999s ease-in-out 0s;
}
