* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  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;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: #fff;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border 0.2s ease;
}

input.input-error {
  border-color: red;
}

.error {
  color: red;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.checkbox {
  margin: 10px 0;
  font-size: 0.9rem;
}

button {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

p {
  text-align: center;
  margin-top: 15px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  h2 {
    font-size: 1.3rem;
  }

  input,
  button {
    font-size: 0.95rem;
    padding: 10px;
  }
}
