/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  background: #f4f7fb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding-top: 70px; /* room for the fixed navbar below */
}

/* Navbar (fixed so it doesn't disturb the centered login card) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 100;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0056d2;
  letter-spacing: 0.5px;
}
.nav-menu-wrap {
  position: relative;
}
.nav-menu-btn {
  background: #f4f6fa;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.nav-menu-btn:hover {
  border-color: #0056d2;
  color: #0056d2;
}
.nav-menu-dropdown {
  position: absolute;
  right: 0;
  top: 46px;
  width: 220px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 50;
  padding: 8px 0;
}
.nav-menu-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.nav-menu-dropdown a:hover {
  background: #f4f6fa;
  color: #0056d2;
}

/* Login Container */
.login-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.5s ease-in-out;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Form Groups */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #555;
}

input, select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s;
}

input:focus, select:focus {
  border-color: #0056d2;
}

/* Password Visibility Toggle */
.form-group:has(#password) {
  position: relative;
}

.form-group:has(#password) input {
  padding-right: 40px;
}

.form-group:has(#password) .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0056d2, #007bff);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0041a8, #0069d9);
  transform: scale(1.05);
}

/* Messages */
#loginMessage {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 14px;
}

/* Sign Up Text */
.signup-text {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 14px;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signup-text a {
  color: #0056d2;
  text-decoration: none;
  font-weight: 600;
}

.signup-text a:hover {
  text-decoration: underline;
}

.signup-text .sep {
  color: #ccc;
  font-weight: 300;
}

.admin-link {
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef1f8;
}

.admin-link a {
  color: #8a92a3;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.admin-link a:hover {
  color: #0056d2;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}





/* Heading font — Poppins for visual hierarchy against Inter body text */
h1, h2, h3, .logo, .brand, .gate-box h2 {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}
