@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f2f2; /* Light gray background */
    color: #333;
    margin: 0;
    padding: 0;
}

/* === Header Section === */
.header {
  background: linear-gradient(90deg, #038fcc, #0073e6);
  color: white;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 4px solid #0073e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo img {
  height: 50px;
}

/* === Nav Links === */
.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: #e6f2fa;
}

/* === Mobile Menu Toggle === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  top: 12px;
  right: 50px;  /* ✅ Perfectly visible */
  z-index: 1100;
  width: 40px;   /* ensures X doesn't get clipped */
  height: 40px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Smooth X animation */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* === Responsive Nav Behavior === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0073e6;
    width: 100%;
    display: none;
    flex-direction: column;
    animation: fadeInNav 0.3s ease-in-out;
  }

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav ul li {
    width: 100%;
  }

  .nav ul li a {
    display: block;
    padding: 12px 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: flex;
  }
}

/* Smooth dropdown animation */
@keyframes fadeInNav {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Login Form Container */
main {
    max-width: 600px; /* Increased size */
    margin: 120px auto 50px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}


/* Title */
h2 {
    color: #0073e6;
    font-size: 28px;
    margin-bottom: 10px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

input[type="email"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    color: black;
    outline: none;
    width: 100%;
}

input[type="email"]:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
}

/* ✅ Reset Button */
.reset-btn {
    background: #0073e6;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.reset-btn:hover {
    background: #005bb5;
    transform: scale(1.05);
}

/* ✅ Back to Login */
.back-to-login a {
    display: block;
    margin-top: 15px;
    color: #0073e6;
    font-size: 14px;
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Footer Styling */
.footer-section {
    background-color: #f2f2f2;
    color: #333;
    padding: 60px 20px;
    font-size: 14px;
    border-top: 4px solid #038fcc;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h3 {
    color: #038fcc;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column p, .footer-column a {
    color: #555;
    text-decoration: none;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #038fcc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #005bb5;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #777;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        text-align: center;
        min-width: 100%;
    }
}

