/* =========================================================
   1) GLOBAL / BASE
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  touch-action: pan-y; /* allows only vertical scroll */
}

:root {
  --primary-green: #010707;
  --secondary-green: #0a3a3f;
  --accent-blue: #EE007D;
  --warm-yellow: #ffeb3b;
  --deep-forest: #010707;
  --light-mint: #e8fff0;
  --glow-green: rgba(33, 180, 170, 0.3);
  --glow-blue: rgba(10, 63, 59, 0.3);
}

/* ===== Scrollbar Styling (Dark Green Theme) ===== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #e6f4f4;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background:  #EE007D;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background:  #af0146;
}

/* resources/css/login.css */

* {
  font-family: 'Poppins' , sans-serif;
}

/* ----- Global Styles ----- */
body, html {
    margin: 0; 
    padding: 0;
    min-height: 100vh;
    background: #fff;
}



/* =========================================================
   2) HEADER / NAVIGATION
   ========================================================= */
.logo img {
  height: 60px;
  /* adjust as needed */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #16d2e0, #11f7ff, #85fbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;
    /* smaller logo for mobile */
  }
}

header {
  width: 100%;
  padding: 5px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(1, 7, 7, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/*header.scrolled .logo h2 {
  color: #4c2dff;
}

.logo h2 {
  color: #a64ce3;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo h2:hover {
  color: #3a44fe;
} */

/* Nav Menu */
.menu {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.menu li {
  position: relative;
}

.menu a {
  font-family: 'Poppins', sans-serif;
  color: #EE007D;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.menu li:not(.login-btn) > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #EE007D;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.menu li:not(.login-btn) > a:hover::after {
  width: 100%;
}

.menu a:hover {
  font-weight: 600;
  color: #d40e5e;
}

.menu a img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.menu a:hover img {
  transform: scale(1.2);
}

/* Login Button */
.login-btn a {
  background: linear-gradient(90deg, #EE007D, #d10154);
  color: #ffffff !important;
  padding: 6px 28px;
  border-radius: 8px;
  font-weight: 500;
  border: 2px solid #ffffff;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.login-btn a:hover {
  background: linear-gradient(90deg, #ff2076, #dc0255);
  color: #ffffff !important;
  transform: scale(1.08);
  border-color: #ff85b3;
  box-shadow: 0 0 12px rgba(255, 0, 96, 0.7);
}

/* Remove underline effect for login button */
.login-btn a::after {
  display: none;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #EE007D;
  border: 1px solid rgba(255, 0, 96, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(255, 0, 96, 0.35);
  animation: dropdownFade 0.35s ease forwards;
  z-index: 999;
}

.dropdown-menu li a {
  padding: 16px 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding-left: 28px;
}

.dropdown-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0%;
  width: 3px;
  background: linear-gradient(90deg, #0a3a3f, #EE007D);
  border-radius: 4px;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.dropdown-menu li a:hover::before {
  height: 60%;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown animation */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #EE007D;
  border-radius: 4px;
  transition: all 0.4s ease;
}

/* Animate to X when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1200px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    text-align: center;
    animation: slideDown 0.4s ease forwards;
  }
  nav.active {
    display: flex;
    padding: 20px;
  }

  .menu {
    flex-direction: column;
    gap: 20px;
  }
  .menu li {
    width: 100%;
  }
  .menu li a {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .dropdown-menu {
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }

  .login-btn a {
    display: block;
    width: 80%;
    margin: 16px auto;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Login Root & Cards ---------- */
.login-root {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.card {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 10rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.card h2 {
  font-size: 2rem;
  color: #f1e0e9 !important;
  font-weight: bold;
  text-align: center;

}

/* ---------- Buttons ---------- */
.card button {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background:#8826ff;
  transition: all 0.3s ease;
}

.card button:hover {
  background: #360276;
}

/* ---------- Manual Login Form ---------- */
/* ----- Cards ----- */
.login-root .card {
  background: #EE007D;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  text-align: left;
  transition: background 0.3s, color 0.3s;
  margin-top: 100px;
  border: 1px solid #3f0122;
}



/* ----- Buttons ----- */
button {
  cursor: pointer;
  font-weight: bold;
  padding: 0.75rem;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, filter 0.2s;
}

button:hover {
  transform: translateY(-2px);
}

#backToMethod2{
  background: #5656ff;
}

#backToMethod2:hover {
  background: #1f1f5d;
}

/* Specific button colors */
#manualBtn {
  background: #2563eb; /* Blue */
  color: #fff;
}

#manualBtn:hover {
  background: #143989; /* Blue */
  color: #fff;
}

#biometricBtn {
  background: #33eade; /* Purple */
  color: #fff;
}

#biometricBtn:hover {
  background: #4b157c; /* Purple */
  color: #fff;
}

#signupBtn {
  background: #1680a3; /* Green */
  color: #fff;
}

#signupBtn:hover {
  background: #094245; /* Green */
  color: #fff;
}

#signupBtn:hover {
  background: #094245; /* Green */
  color: #fff;
}

#signupBtn2 {
  background: #1680a3; /* Green */
  color: #fff;
}

#signupBtn2:hover {
  background: #094245; /* Green */
  color: #fff;
}


/* Wrapper to align text and link */
.signup-wrapper {
  display: flex;
  justify-content: center; /* center in login card */
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #ffffff;
}

/* Normal text */
.signup-text {
  color: #ccc;
}

/* Sign Up link with icon */
.signup-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Gradient icon for flair */
.signup-link i {
  background: linear-gradient(135deg, #ffffff, #f7e6ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Hover effects */
.signup-link:hover {
  background: rgba(33, 180, 170, 0.1); /* subtle highlight */
  transform: translateY(-2px);
  color: #f188ea;
}

.signup-link:hover i {
  transform: scale(1.2); /* icon pops slightly */
}

@media (max-width: 540px) {
  .signup-wrapper {
    flex-direction: column; /* stack vertically */
    gap: 6px;
    font-size: 0.9rem;
    text-align: center;
  }

  .signup-link {
    width: 100%;           /* make button full width */
    justify-content: center; /* center icon + text */
    padding: 8px 0;
  }
}

#loginBtn,
#gotoSignup {
  border-radius: 6px; 
  padding: 0.75rem 1.5rem;
   background: #ffffff;
   border: 1px solid #f005a6;
  color: #EE007D;
}

#loginBtn:hover
#gotoSignup:hover {
  background: #EE007D;
  color: #fff;
}

/* ----- Password wrapper ----- */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 40%;
  right: 13px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 0.9rem;
  color: #ffffff;         /* make it visible on dark background */
  z-index: 10;         /* ensure it’s above input field */
}

form label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.95rem;
  color: #efeeee;

}

.card input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #EE007D;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: border 0.3s, background 0.3s;
  background-color: #ffffff !important;
  color: #EE007D !important;
}

.card input::placeholder {
  color: #EE007D !important;
  opacity: 0.6;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  -webkit-text-fill-color: #EE007D !important;
}

/* ----- Error ----- */
.error {
    border: 1px solid #B91C1C;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    display: none; /* hidden initially */
    background: #ffdfdf;
    color: red;
}

/* ----- Links ----- */
.links {
  text-align: left;
  margin-bottom: 1rem;
}

.links a {
  color: #f4d8ec;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
  color: #f1e9ef;
}



/* ----- Back buttons ----- */
.back-btn {
  background: none;
  border: none;
  color: gray;
 
  margin-top: 1rem;
}

/* ----- Flex buttons wrapper ----- */
.buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ----- Responsive ----- */
@media (max-width: 540px) {
  .login-root .card {
    width: 100%;
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ---------- Card Animation ---------- */
/* .login-root .card {
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.5s forwards;
} */

/* Trigger animation when card becomes visible */
#methodSelection,
#manualLogin,
#biometricLogin {
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.5s forwards;
}

/* Fade in + slide up */
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: stagger animation for multiple cards */
.login-root .card:nth-child(1) {
  animation-delay: 0.1s;
}

.login-root .card:nth-child(2) {
  animation-delay: 0.2s;
}

.login-root .card:nth-child(3) {
  animation-delay: 0.3s;
}


.logo img {
    height: 60px;           /* adjust as needed */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;       /* smaller logo for mobile */
    }
}

