@import url("https://fonts.googleapis.com/css2?family=Anuphan:wght@100..700&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Anuphan", sans-serif !important;
  background-image: url("../images/login_bg.png");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.register-page .create-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.create-inner {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 48px 64px;
  color: #191919;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.create-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.back-arrow {
  display: inline-block;
  color: #191919;
  text-decoration: none;
  font-size: 20px;
  margin: 0;
}

.create-inner h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

@media (max-width: 480px) {
  .create-header {
    gap: 10px;
  }
  .create-inner h1 {
    font-size: 18px;
  }
}
.register-form {
  display: block;
}

.register-form label {
  display: block;
  font-size: 13px;
  color: #191919;
  margin: 14px 0 8px;
}

.register-form input[type=text],
.register-form input[type=email],
.register-form input[type=password] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #191919;
  font-size: 15px;
}

.password-field {
  position: relative;
}

.password-field .toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.9;
}

.help-text {
  font-size: 12px;
  color: #191919;
  margin: 12px 0;
}

.checkbox_style {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(36, 141, 186, 0.6);
  /* #248DBA */
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.18s ease;
  flex: 0 0 18px;
}

/* Checked state: gradient background + subtle shadow */
.checkbox_style:checked {
  background: linear-gradient(180deg, #0ea0ff, #007bff);
  border-color: #007bff;
  box-shadow: 0 6px 14px rgba(3, 105, 255, 0.12), inset 0 -2px 4px rgba(255, 255, 255, 0.08);
}

/* White tick */
.checkbox_style:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agreements {
  margin-top: 8px;
  font-size: 13px;
  color: #248DBA;
}

.agreements .checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  transition: all 0.3s ease;
}

.agreements a {
  color: #248DBA;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-create {
  background: linear-gradient(#0ea0ff, #007bff);
  border: none;
  color: #fff;
  padding: 12px 36px;
  border-radius: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(3, 105, 255, 0.18);
}

.error-message {
  background: rgba(255, 0, 0, 0.09);
  color: #ffdede;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .create-inner {
    padding: 28px;
  }
  .btn-create {
    width: 100%;
  }
}
/* === 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;
}