@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Playfair+Display:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7fb;
  color: #222;
}

/* HEADER */
#header {
  background: linear-gradient(90deg, #2f6b96, #1e6091);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 55px;
  height: 55px;
   border-radius: 50%;
}

.logo h2 {
  color: #fff;
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

#menu ul {
  list-style: none;
}

#menu ul li {
  display: inline-block;
  margin: 0 15px;
  position: relative;
}

#menu ul li a {
  color: #eaf8ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
}

#menu ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

#menu ul li a:hover::after {
  width: 100%;
}

/* Nút menu di động */
.menu-toggle {
  display: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  #menu {
    display: none;
    width: 100%;
    background: #1e6091;
    text-align: center;
    padding: 15px 0;
  }

  #menu ul li {
    display: block;
    margin: 15px 0;
  }

  .menu-toggle {
    display: block;
  }

  #menu.active {
    display: block;
    animation: fadeSlide 0.5s ease forwards;
  }
}

/* Hiệu ứng xuất hiện menu */
@keyframes fadeSlide {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* FORM ĐĂNG NHẬP */
#content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
 background: linear-gradient(90deg, #2f6b96, #557b97);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-box {
  background: #ffffff;
  color: #0a3d62;
  padding: 50px 60px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 450px;
  width: 100%;
  animation: fadeIn 1s ease forwards;
}

.login-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 10px;
  color: #1e6091;
}

.login-box p {
  color: #14496c;
  margin-bottom: 35px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-group label {
  color: #14496c;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cce4f9;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-form input:focus {
  border-color: #1e6091;
  box-shadow: 0 0 10px rgba(30,96,145,0.3);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #14496c;
}

.form-options a {
  text-decoration: none;
  color: #1e6091;
}

.form-options a:hover {
  text-decoration: underline;
}

.btn-login {
  background: linear-gradient(90deg, #1e6091, #2f6b96);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(90deg, #14496c, #1e6091);
  transform: translateY(-3px);
}

.register-link {
  margin-top: 20px;
  color: #333;
  text-align: center;
}

.register-link a {
  color: #1e6091;
  font-weight: 500;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Hiệu ứng form nổi bật */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* FOOTER */
#footer {
  background-color: #0a3d62;
  color: #daf9ff;
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
}
