main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

form {
  max-width: 450px;
  width: 100%;
  padding: 30px;
  background-color: var(--container-bg-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

form h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 25px;
}

label {
  display: block;
  font-size: 0.9em;
  color: var(--secondary-text-color);
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  background-color: var(--input-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-glow-color);
}

.password-toggle {
  font-size: 0.8em;
  color: var(--secondary-text-color);
  text-align: right;
  cursor: pointer;
  margin-top: -15px;
  margin-bottom: 10px;
}

.password-toggle:hover {
  color: var(--primary-color);
}

input[type="checkbox"] {
  accent-color: var(--primary-color);
  margin-right: 5px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: var(--background-color);
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  margin-top: 20px;
}

button:hover {
  background-color: #00b386;
  transform: translateY(-2px);
}

button:active {
  background-color: #00996b;
  transform: translateY(0);
}

button:disabled {
  background-color: var(--border-color);
  cursor: not-allowed;
}

p {
  font-size: 0.9em;
  text-align: center;
  color: var(--secondary-text-color);
  margin-top: 15px;
}

p a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

p a:hover {
  text-decoration: underline;
}

/* Specific styling for the message box */
.message {
  width: 100%;
  max-width: 450px;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  display: none; /* Will be shown with JavaScript */
}

/* You will add these classes with JavaScript */
.message.success {
  background-color: #28a745;
}
.message.error {
  background-color: #dc3545;
}

i {
  display: block;
  font-size: 0.8em;
  color: var(--secondary-text-color);
  margin-bottom: 15px;
  font-style: italic;
  text-align: center;
}

















