/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 400px;
}

form {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

form.active {
  display: block;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5em;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  outline: none;
}

input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #0056b3;
}

.forgot,
.switch {
  text-align: center;
  margin-top: 15px;
  color: #007bff;
  cursor: pointer;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.forgot:hover,
.switch:hover {
  color: #0056b3;
}

.message {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9em;
  min-height: 20px;
}

.message.green {
  color: #28a745;
}

.message.red {
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  form {
    padding: 15px;
  }

  h2 {
    font-size: 1.2em;
  }

  input,
  button {
    font-size: 0.9em;
  }
}