/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
header {
  background: #002147;
  color: #fff;
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #ffb400;
}

/* Dropdowns */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #002b63;
  list-style: none;
  margin-top: 10px;
  border-radius: 6px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 10px;
  width: 160px;
}

.dropdown-menu li a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.dropdown-menu li a:hover {
  background: #ffb400;
  color: #002147;
}

/* Login Section */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
  background: linear-gradient(135deg, #002147, #0056b3);
  padding: 20px;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #002147;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #002147;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border: none;
  background: #002147;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #ffb400;
  color: #002147;
}

.note {
  text-align: center;
  margin-top: 15px;
}

.note a {
  color: #0056b3;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #002147;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 220px;
    height: 100vh;
    background: #002147;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-top: 80px;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    padding: 15px 25px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
  }

  .dropdown:hover .dropdown-menu {
    display: none; /* disable hover on mobile */
  }

  .dropdown-menu {
    position: static;
    background: none;
    margin: 0;
  }

  .dropdown-menu li a {
    padding-left: 15px;
  }

  .login-container {
    height: auto;
    padding: 40px 20px;
  }

  .login-box {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3em;
  }

  .login-box {
    width: 100%;
    padding: 20px;
  }

  .btn {
    padding: 10px;
  }
}
