/* Prevent browser autofill from changing input styles - maintain original styling */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:focus,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #000 inset !important;
  box-shadow: 0 0 0 1000px #000 inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
  font-size: 50px !important;
  font-weight: bold !important;
  line-height: 0.8 !important;
  font-family: 'Chathura', Arial, sans-serif !important;
}

.login-form input:-internal-autofill-selected {
  background-color: transparent !important;
  color: #fff !important;
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Chathura', sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Base responsive setup */
html {
  font-size: 100%;
}

/* Fix the header to the top */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease;
  /* Smooth transition for background change */
  /* match body bg or set your desired color */
}

/* Header with solid background when scrollable */
header.scrollable {
  background-color: #000;
}

/* Navigation bar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.SearchIconNavBar {
  width: 25px;
}

.nav-links,
.nav-actions {
  display: flex;
  gap: 20px;
  width: 220px;
}

hr {
  height: 40px;
  line-height: 20px;
  border: 1px solid white;
  transform: translate(0%, +35%);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 40px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
  white-space: nowrap;
  display: inline-block;
}

@media (hover: hover) {


  .nav-link:hover {
    opacity: 0.7;
  }


}

.logo {
  font-size: 70px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 1px;
  pointer-events: none;
  user-select: none;
  color: transparent;
}

.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 130;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:first-child {
  transform-origin: top left;
}

.mobile-menu-toggle span:nth-child(2) {
  transform-origin: center;
}

.mobile-menu-toggle span:last-child {
  transform-origin: bottom left;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg);
  width: 100%;
  position: relative;
  top: -1px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  width: 100%;
  position: relative;
  bottom: -1px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 120;
  padding: 80px 30px 30px;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  color: white;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 20px 0;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {


  .mobile-nav-link:hover {
    opacity: 0.7;
  }


}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

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

.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  user-select: none;
  margin-top: 0;
  padding-top: 0;
  flex-direction: row;
  /* Default to row for desktop */
  position: relative;
  top: 0;
}

.login-left,
.login-right {
  flex: 0.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  background: #000;
  position: relative;
}

.login-left {
  flex: 1;
  margin-top: 0;
  padding-top: 0;
}

.ImageText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 40px;
  font-family: 'Chathura', Arial, sans-serif;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.ImageTextLine {
  margin: 0;
  padding: 0;
  font-size: 80px;
  line-height: 0.8;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.login-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}

.LoginTitleContainer {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.login-title {
  font-family: 'Dela Gothic One', Arial, sans-serif;
  font-size: 60px;
  font-weight: normal;
  line-height: 1.5;
  width: 70px;
  margin-bottom: 50px;
  pointer-events: none;
  user-select: none;
  border-bottom: 10px solid #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.login-images {
  position: relative;
  width: 40vw;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img {
  position: absolute;
  transition: box-shadow 0.2s;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
  border-radius: 28px;
  overflow: hidden;
}

.img-left {
  left: 0;
  width: 20vw;
  height: 350px;
  z-index: 1;
}

.img-center {
  left: 10vw;
  top: 0;
  width: 20vw;
  height: 400px;
  z-index: 2;
}

.img-right {
  right: 0;
  width: 20vw;
  height: 350px;
  z-index: 1;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  overflow-y: auto;
  /* Enable scrolling for desktop when content overflows */
  max-height: 100vh;
  /* Ensure it doesn't exceed viewport height */
  padding-bottom: 50px;
  /* Add bottom padding for better spacing */
}

/* When scrollable, align to start */
.login-right.scrollable {
  justify-content: start;
}

/* Add top margin to the first child to account for fixed header */
.login-right>*:first-child {
  margin-top: 110px;
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  gap: 20px;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  line-height: 0.8;
  outline: none;
  font-family: 'Chathura', Arial, sans-serif;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 0px !important;
}

.login-form input[type="email"] {
  border-bottom: 2px solid #fff;
}

.password-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 60px;
  box-sizing: border-box;
  border-bottom: 2px solid #fff;
  background-color: transparent;
}

.TogglePass {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  background-color: transparent;
}

.login-options {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 35px;
  line-height: 0.8;
  font-weight: bold;
  font-family: 'Chathura', Arial, sans-serif;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
}

.remember-me input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
  transform: scale(1.2);
}

.login-options .forgot-password {
  color: #717171;
  font-size: 35px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Chathura', Arial, sans-serif;
  user-select: none;
}

@media (hover: hover) {


  .login-options .forgot-password:hover {
    color: #fff;
  }


}

.login-btn {
  width: 100%;
  margin-top: 40px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: normal;
  font-family: 'Dela Gothic One', Arial, sans-serif;
  padding: 20px 0px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (hover: hover) {


  .login-btn:hover {
    background: #222;
    color: #fff;
  }


}

.signup-link {
  text-align: center;
  font-size: 35px;
  font-family: 'Chathura', Arial, sans-serif;
  color: #717171;
  user-select: none;
}

.signup-link a {
  color: #717171;
  text-decoration: underline;
  transition: all 0.3s ease;
  user-select: none;
}

@media (hover: hover) {


  .signup-link a:hover {
    color: #fff;
  }


}

/* ====== RESPONSIVE STYLES ====== */

/* Tablet Styles (up to 1300px) */
@media screen and (max-width: 1300px) {

  /* Navigation adjustments */
  .navbar {
    padding: 20px;
  }

  .nav-links,
  .nav-actions {
    gap: 10px;
    width: auto;
  }

  .nav-link {
    font-size: 30px;
  }

  hr {
    height: 30px;
  }

  /* Main content */
  .logo {
    font-size: 60px;
    line-height: 60px;
  }

  /* Login form */
  .login-container {
    flex-direction: column-reverse;
    justify-content: start;
    min-height: 100vh;
  }

  .login-left,
  .login-right {
    flex: none;
    width: 100%;
  }

  .login-right {
    padding: 0px 0 50px 0;
    /* Removed top padding for tablet */
    position: relative;
    z-index: 5;
    min-height: auto;
    height: auto;
    overflow-y: visible;
    /* Reset overflow for tablet */
    max-height: none;
    /* Reset max-height for tablet */
    justify-content: center;
    /* Re-center for tablet */
  }

  /* Reset first child margin for tablet */
  .login-right>*:first-child {
    margin-top: 0;
  }

  .login-left {
    height: 50vh;
    position: relative;
    padding-top: 0;
    top: 0;
  }

  .login-left img {
    height: 100%;
    position: absolute;
    top: 0;
    object-position: center;
  }

  .ImageText {
    top: 25vh;
    left: 50%;
  }

  .ImageTextLine {
    font-size: 60px;
    text-align: center;
  }

  /* Keep header transparent for tablet view */
  header,
  header.scrollable {
    background-color: transparent !important;
  }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {

  /* Navigation adjustments */
  .navbar {
    padding: 30px 20px;
    justify-content: space-between;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide desktop navigation */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .logo {
    font-size: 60px;
    line-height: 50px;
  }

  /* Mobile layout adjustments */
  .login-container {
    padding-top: 0;
    flex-direction: column-reverse;
  }

  .login-right {
    padding-top: 0px;
    /* Removed top padding for mobile */
  }

  .login-left {
    height: 50vh;
    position: relative;
    top: 0;
  }

  .login-title {
    font-size: 50px;
    margin-bottom: 30px;
  }

  .login-form {
    width: 90%;
  }

  .login-form input[type="email"],
  .login-form input[type="password"],
  .login-form input[type="text"] {
    font-size: 40px;
  }

  .login-options {
    font-size: 30px;
  }

  .login-btn {
    font-size: 25px;
    padding: 15px 0;
  }

  .signup-link {
    font-size: 30px;
  }

  .ImageTextLine {
    font-size: 50px;
  }

  body {
    overflow-y: auto;
  }

  /* Keep header transparent for mobile view */
  header,
  header.scrollable {
    background-color: transparent !important;
  }
}

/* Small Mobile Styles (up to 479px) */
@media screen and (max-width: 479px) {

  /* Navigation adjustments */
  .logo {
    font-size: 50px;
    line-height: 40px;
  }

  .login-right {
    padding-top: 0px;
    /* Removed top padding for small mobile */
  }

  .login-title {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .login-form input[type="email"],
  .login-form input[type="password"],
  .login-form input[type="text"] {
    font-size: 35px;
  }

  .login-options {
    font-size: 25px;
  }

  .login-btn {
    font-size: 20px;
    padding: 12px 0;
  }

  .signup-link {
    font-size: 25px;
  }

  .ImageTextLine {
    font-size: 40px;
  }

  .TogglePass {
    width: 30px;
    height: 30px;
  }

  /* Keep header transparent for small mobile view */
  header,
  header.scrollable {
    background-color: transparent !important;
  }
}

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