body {
  background-color: #1f1f1f;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
}

.auth-box {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px #000;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers content horizontally */
}

.auth-box.expanded {
  background: #333;
  transform: scale(1.03);
}

.toggle-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: #555;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-btn:hover { background: #666; }

.hidden { max-height: 0; opacity: 0; margin-top: 0; pointer-events: none; transition: all 0.4s ease; }
.expanded .hidden { max-height: 300px; opacity: 1; margin-top: 10px; pointer-events: all; }

input, button {
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
}

button[type="submit"] {
  background-color: #0a84ff;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}
button[type="submit"]:hover {
  background-color: #006edc;
}

.error {
  color: #ff5555;
  font-size: 12px;
  height: 14px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers inputs horizontally */
  width: 100%;
}