* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("nen8.avif");
  background-size: cover; /* Đảm bảo ảnh nền bao phủ toàn bộ màn hình */
  background-position: center center;
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f6f8;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background-color: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333333;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border 0.2s, background-color 0.2s;
}

input.input-error {
  border: 2px solid red !important;
  background-color: #fff5f5;
}

.error {
  color: red;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.checkbox {
  display: flex;
  align-items: center;
  margin: 10px 0 16px;
  font-size: 0.9rem;
}

.checkbox input {
  margin-right: 8px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #2d89ef;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #1a6fd3;
}

p {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

a {
  color: #2d89ef;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  .form h2 {
    font-size: 1.25rem;
  }

  .form input,
  button {
    font-size: 0.95rem;
    padding: 10px;
  }
}
