@import url("https://fonts.googleapis.com/css2?family=Anuphan:wght@100..700&display=swap");
/* Variables */
:root {
  --primary-blue: #5b87f6;
  /* Matching the button and right panel blue */
  --light-blue-bg: #eef2fe;
  /* Light blue for Sign Up button */
  --text-dark: #333333;
  --text-muted: #8c90a1;
  /* For placeholders and subtext */
  --border-color: #e5e7eb;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Anuphan", sans-serif !important;
}

body {
  background-color: #ffffff;
  height: 100vh;
  overflow: hidden;
  /* Prevent scrolling on login */
  font-family: "Anuphan", sans-serif !important;
}

/* Main Split Wrapper */
.admin-login-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* === LEFT PANEL (Form) === */
.left-panel {
  flex: 1;
  /* Takes up half or slightly less space depending on screen */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 40px;
  z-index: 2;
  /* To sit above any overflowing backgrounds */
}

.form-container {
  width: 90%;
  margin: 0 auto;
  max-width: 450px;
  /* Constrain form width */
}

.login-header {
  margin-bottom: 50px;
}
.login-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}
.login-header .support-text {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

/* Form Inputs */
.input-group {
  margin-bottom: 30px;
}
.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  /* Only bottom border */
  padding-bottom: 5px;
}
.input-with-icon input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  background: transparent;
  padding-right: 30px;
  /* Space for icon */
}
.input-with-icon input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.input-with-icon input {
  /* Basic autofill fix */
}
.input-with-icon input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: var(--text-dark) !important;
}
.input-with-icon i {
  position: absolute;
  right: 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Form Actions (Remember Me & Recover) */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.form-actions .remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-left: 28px;
  /* Space for custom radio */
}
.form-actions .remember-me input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.form-actions .remember-me {
  /* Custom Radio Style */
}
.form-actions .remember-me .custom-radio {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
}
.form-actions .remember-me {
  /* Inner dot when checked */
}
.form-actions .remember-me input:checked ~ .custom-radio:after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
}
.form-actions .remember-me {
  /* Add slight blue background when checked to match mockup */
}
.form-actions .remember-me input:checked ~ .custom-radio {
  background-color: rgba(91, 135, 246, 0.1);
}
.form-actions .recover-link {
  font-size: 0.9rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}
.form-actions .recover-link:hover {
  text-decoration: underline;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
}
.button-group .btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.button-group .btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}
.button-group .btn-primary:hover {
  background-color: #4a75e0;
}
.button-group .btn-secondary {
  background-color: var(--light-blue-bg);
  color: var(--primary-blue);
}
.button-group .btn-secondary:hover {
  background-color: #e0e8fd;
}

/* === RIGHT PANEL (Illustration) === */
.right-panel {
  flex: 1;
  background-color: var(--primary-blue);
  position: relative;
  overflow: hidden;
  /* Hide overflowing decorative shapes */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Create the abstract wavy background using pseudo-elements */
}
.right-panel::before, .right-panel::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  /* very faint white/light blue */
  border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
  animation: morph 15s ease-in-out infinite alternate;
  z-index: 1;
}
.right-panel::before {
  width: 150%;
  height: 150%;
  top: -20%;
  left: -20%;
  background: rgba(0, 0, 0, 0.04);
  /* darker blob */
}
.right-panel::after {
  width: 120%;
  height: 120%;
  bottom: -30%;
  right: -10%;
  background: rgba(255, 255, 255, 0.08);
  /* lighter blob */
  animation-delay: -5s;
}
.right-panel .illustration-container {
  position: relative;
  z-index: 2;
  /* Sit above the blobs */
  width: 80%;
  max-width: 600px;
}
.right-panel .illustration-container img {
  width: 100%;
  height: auto;
  /* Add drop shadow to make illustration pop */
  filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.15));
}

/* Subtle animation for background blobs */
@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
    transform: rotate(0deg) scale(1);
  }
  100% {
    border-radius: 60% 40% 30% 70%/60% 50% 40% 50%;
    transform: rotate(15deg) scale(1.05);
  }
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .admin-login-wrapper {
    flex-direction: column;
  }
  .left-panel {
    flex: unset;
    height: 60vh;
    align-items: flex-end;
    /* Push content up slightly */
  }
  .right-panel {
    flex: unset;
    height: 40vh;
  }
}
/* === RESPONSIVE NAVBAR & MOBILE MENU OVERLAY === */
/* Mobile View adjustments */
@media (max-width: 900px) {
  /* Hide Desktop Nav Links */
  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .nav-center-group,
  .nav-links-container,
  .btn-create-trip {
    display: none !important;
    /* Force hide on mobile across all pages */
  }
  /* Hamburger Menu Toggle Icon */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10005;
    /* Must be higher than the overlay */
    position: relative;
    margin-left: 15px;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy smooth transition */
    transform-origin: left center;
    pointer-events: none;
    /* Allow clicks to pass through to the parent div */
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
  }
  /* Inverse color for dark hero backgrounds (if needed) */
  .navbar.dark-theme .hamburger-menu span {
    background: #fff;
  }
  /* Mobile Menu Overlay - Top Down Frosted Glass */
  .mobile-menu-overlay {
    position: fixed;
    top: -100vh;
    /* Start hidden above */
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full screen */
    background: rgba(255, 255, 255, 0.85);
    /* Transparent white */
    backdrop-filter: blur(15px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(15px);
    z-index: 10010;
    /* Cover everything including the hamburger icon */
    transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Extremely smooth easing */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center items vertically */
    align-items: center;
    /* Center items horizontally */
    pointer-events: none;
    /* Prevent blocking clicks when hidden */
  }
  .mobile-menu-overlay.active {
    top: 0;
    /* Slide down to cover screen */
    pointer-events: all;
    /* Enable clicks when visible */
  }
  .mobile-menu-overlay .mobile-menu-content {
    padding: 20px;
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.5s ease 0.3s;
    /* Fade in and slide down after main menu slide */
  }
  .mobile-menu-overlay .mobile-menu-content .close-menu {
    position: fixed;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  .mobile-menu-overlay .mobile-menu-content .close-menu:hover {
    background: #fff;
    color: #F0BB1F;
    transform: scale(1.1) rotate(90deg);
  }
  .mobile-menu-overlay .mobile-menu-content .btn-create-trip-mobile {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .mobile-menu-overlay .mobile-menu-content .btn-create-trip-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  }
  .mobile-menu-overlay .mobile-menu-content ul {
    list-style: none;
    padding: 0;
  }
  .mobile-menu-overlay .mobile-menu-content ul li {
    margin-bottom: 30px;
  }
  .mobile-menu-overlay .mobile-menu-content ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    /* Larger font for full screen menu */
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu-overlay .mobile-menu-content ul li a:hover, .mobile-menu-overlay .mobile-menu-content ul li a.active {
    color: #F0BB1F;
    /* Brand yellow color */
    transform: scale(1.05);
  }
  .mobile-menu-overlay.active .mobile-menu-content {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Desktop View adjustments */
@media (min-width: 901px) {
  /* Hide Hamburger and Overlay on Desktop */
  .hamburger-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}
/* === RESPONSIVE FOOTER === */
@media (max-width: 768px) {
  .footer-curve-img {
    display: none !important;
    /* Hide the large curve image on mobile */
  }
  .footer {
    padding-top: 160px !important;
    /* Reduce the huge whitespace since curve is gone */
  }
}
body::-webkit-scrollbar {
  display: none;
}

body::-webkit-scrollbar {
  display: none;
}