@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

   body {
  font-family: 'Poppins', sans-serif;

  /* 🔑 DO NOT lock height */
  min-height: 100svh;

  display: flex;
  flex-direction: column;

  /* 🔑 top-aligned instead of vertical center */
  justify-content: flex-start;
  align-items: center;

  padding-top: 40px;

  background: linear-gradient(135deg, #001F3F, #0A3D62, #1B1464);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  background-attachment: fixed;

  overflow-x: hidden;
  overflow-y: auto;

  text-align: center;
  color: white;
}


    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .overlay {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 30% 20%, rgba(0, 191, 255, 0.15), transparent 60%),
                  radial-gradient(circle at 80% 70%, rgba(255, 0, 150, 0.15), transparent 60%);
      pointer-events: none;
    }

    .container {
      z-index: 2;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 60px 60px 50px;
      backdrop-filter: blur(12px);
      box-shadow: 0 0 40px rgba(0, 191, 255, 0.15);
      animation: fadeIn 1s ease forwards;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

.logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 40px auto 20px;
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.35));
  border-radius: 12px;
}

/* Make it stretch more on small screens */
@media (max-width: 768px) {
  .logo {
    width: 95vw;        /* fill almost full width */
    height: auto;      /* keep it shorter for mobile layout */
    max-width: none;    /* remove the desktop width cap */
    object-fit: cover;  /* crop slightly if needed */
    margin: 30px auto 15px;
  }
}


footer {
  margin-top: 50px;           /* spacing below buttons */
  padding: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
  position: relative;         /* no overlap */
  z-index: 2;
}

    h1 {
      font-size: 2.7rem;
      font-weight: 600;
      color: #00bfff;
      margin-bottom: 12px;
      text-shadow: 0 0 25px rgba(0, 191, 255, 0.35);
    }

    p {
      color: #d6d6d6;
      max-width: 440px;
      margin: 0 auto 35px;
      line-height: 1.6;
      font-size: 1rem;
    }

    .button-row {
      display: flex;
      justify-content: center;
      gap: 18px;
      flex-wrap: wrap;
    }

    a.button {
      display: inline-block;
      padding: 14px 36px;
      background: linear-gradient(90deg, #007bff, #00c6ff);
      color: white;
      border-radius: 10px;
      font-weight: 600;
      text-decoration: none;
      font-size: 1rem;
      transition: all 0.25s ease;
    }

    a.button:hover {
      transform: translateY(-3px);
      box-shadow: 0 0 25px rgba(0, 191, 255, 0.8);
    }

    footer a {
      color: #00c6ff;
      text-decoration: none;
      font-weight: 600;
    }

    footer a:hover {
      text-decoration: underline;
    }
  
    /* Logo and box combined visually */
    .login-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 18px;
      backdrop-filter: blur(12px);
      box-shadow: 0 0 35px rgba(0, 191, 255, 0.2);
      padding: 40px 35px 50px;
      width: 100%;
      max-width: 600px;
      animation: fadeIn 1s ease forwards;
    }
.logo-banner {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 40px auto 20px;
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.35));
  border-radius: 12px;
}

/* Match homepage sizing and keep centered on mobile */
@media (max-width: 768px) {
  .logo-banner {
    width: 95vw;
    max-width: none;
    height: auto;
    object-fit: cover;
    margin: 30px auto 15px;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* ensures perfect centering */
  }
}

    h2 {
      margin: 5px 0 25px;
      font-size: 1.8rem;
      color: #00bfff;
      text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    }

    form {
      width: 100%;
    }

    .form-group {
      position: relative;
    }

    input {
      width: 100%;
      padding: 12px;
      margin: 10px 0;
      font-size: 16px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.3);
      color: white;
      outline: none;
      transition: 0.3s;
    }

    input:focus {
      border-color: #00bfff;
      box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    }

    #togglePassword {
      position: absolute;
      right: 10px;
      top: 22px;
      cursor: pointer;
      font-size: 16px;
      color: #ccc;
    }

    .remember-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 5px;
      font-size: 14px;
    }

    .remember-row label {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    button {
      width: 100%;
      padding: 12px;
      font-size: 16px;
      background: linear-gradient(90deg, #007bff, #00c6ff);
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      margin-top: 10px;
      font-weight: 600;
      transition: all 0.25s ease;
    }

    button:hover {
      transform: translateY(-3px);
      box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    }

    a {
      color: #00c6ff;
      text-decoration: none;
      display: block;
      text-align: center;
      margin-top: 14px;
      font-weight: 500;
    }

    a:hover {
      text-decoration: underline;
    }

    #loginMessage {
      margin-top: 10px;
      font-size: 14px;
      color: #ff6666;
      text-align: center;
    }
/* Glass box */
    .content {
     display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 18px;
      backdrop-filter: blur(12px);
      box-shadow: 0 0 35px rgba(0, 191, 255, 0.2);
      padding: 40px 35px 50px;
      width: 100%;
      max-width: 600px;
      animation: fadeIn 1s ease forwards;
    }
    #toggleRegisterPassword {
      position: absolute;
      right: 10px;
      top: 22px;
      cursor: pointer;
      font-size: 16px;
      color: #ccc;
    }

    #registerMessage {
      margin-top: 10px;
      font-size: 14px;
      color: #ff6666;
      text-align: center;
    }

    .g-recaptcha {
      transform: scale(1.02);
      transform-origin: top left;
      margin-top: 20px;
    }

html {
  height: 100%;
  background: linear-gradient(135deg, #001F3F, #0A3D62, #1B1464);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
   overscroll-behavior-y: contain;
}

    header {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.05);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 0 25px rgba(0, 191, 255, 0.15);
      padding: 15px 20px;
      color: #00c6ff;
      position: relative;
      backdrop-filter: blur(10px);
      text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
    }

    /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0;
      left: -260px;
      width: 250px;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(12px);
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      padding: 70px 20px 20px;
      transition: 0.4s ease;
      z-index: 1000;
    }
    .sidebar.open {
  left: 0;
}

    .sidebar.active {
      left: 0;
    }

    .sidebar a {
      color: white;
      text-decoration: none;
      margin: 12px 0;
      font-weight: 500;
      padding: 10px;
      border-radius: 6px;
      transition: 0.25s;
      border-bottom: 1px solid #555;
    }

    .sidebar a:hover {
      background: rgba(0, 191, 255, 0.15);
      color: #00c6ff;
      padding-left: 15px;
    }

    .logout {
      margin-top: auto;
      color: #ff6666 !important;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      z-index: 900;
    }

    .overlay.active {
      display: block;
    }
.overlay.show {
  display: block;
}

    .content h3 {
      color: #00bfff;
      font-size: 2rem;
      text-align: center;
      margin-bottom: 15px;
      text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
    }

    .content h4 {
      color: #00c6ff;
      margin-top: 25px;
      font-size: 1.2rem;
    }

    .content p,
    .content ul {
      font-size: 15px;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.9);
      margin-top: 10px;
    }

    .content ul {
      padding-left: 20px;
    }

    .countdown {
      font-size: 16px;
      color: #00ffcc;
      margin-top: 15px;
      text-align: center;
      transition: all 0.3s ease;
    }

    .flash {
      color: red !important;
      animation: flash 1s infinite;
    }

    @keyframes flash {
      0%, 100% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }
    }

    /* Spinner */
    #spinnerOverlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background: rgba(10, 10, 10, 0.85);
      z-index: 9999;
      backdrop-filter: blur(4px);
    }

    .spinner {
      border: 6px solid rgba(255, 255, 255, 0.1);
      border-top: 6px solid #00d1b2;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 1s linear infinite;
      margin-bottom: 15px;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    #spinnerMessage {
      color: #00d1b2;
      font-weight: 600;
      font-size: 18px;
      text-shadow: 0 0 8px #00d1b2;
    }

    @media (max-width: 768px) {
      .content {
        margin: 70px 15px;
        padding: 30px 20px;
      }

      .content h3 {
        font-size: 1.6rem;
      }
    }
    .menu-icon {
      position: absolute;
      left: 20px;
      font-size: 26px;
      cursor: pointer;
      color: white;
      transition: 0.3s;
    }

    .menu-icon:hover {
      color: #00c6ff;
    }

    .profile-dropdown {
      position: absolute;
      right: 20px;
      text-align: right;
      cursor: pointer;
      user-select: none;
      z-index: 100;
    }

    .profile-dropdown h4 {
      margin: 0;
      font-size: 15px;
      color: #fff;
    }

    .dropdown-content {
      display: none;
      position: fixed;
      top: 60px;
      right: 20px;
      background: rgba(0, 0, 0, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      padding: 12px 16px;
      min-width: 220px;
      box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
      backdrop-filter: blur(12px);
      z-index: 5000;
      will-change: transform, opacity;
      transform: translateZ(0);
      backface-visibility: hidden;
    }

    .dropdown-content p,
    .dropdown-content button {
      color: #fff;
      margin: 6px 0;
      font-size: 14px;
      background: none;
      border: none;
      text-align: left;
      width: 100%;
      cursor: pointer;
    }

    .dropdown-content button:hover {
      color: #00c6ff;
    }
	
	       /* Profile icon instead of text */
.profile-dropdown {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  z-index: 100;
  display: flex;
  align-items: center;
}

.profile-dropdown img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
  transition: 0.3s ease;
}

.profile-dropdown img:hover {
  border-color: #00c6ff;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.7);
  transform: scale(1.05);
}

