/* ========== Reset & Base ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Ensure html and body take up the full height */
}

body.landing-page {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #e8ebf4;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Full height for the landing page */
}

/* ========== Phone Wrapper ========== */
.phone-wrapper {
  position: relative;
  width: 380px; /* Fixed width for desktop */
  height: 780px; /* Fixed height for desktop */
  border-radius: 32px; /* Rounded corners for desktop */
  overflow: hidden; /* Prevent unnecessary scrolling */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* Add shadow for desktop */
  background: #f8f9fc url('../img/background_light.png') no-repeat bottom center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space out content */
}

body.dark .phone-wrapper {
  background: #18192a url('../img/background_dark.png') no-repeat bottom center;
  background-size: cover;
}

/* ========== Mobile View ========== */
@media (max-width: 768px) {
  .phone-wrapper {
    width: 100%; /* Full width for mobile */
    height: 100%; /* Full height for mobile */
    border-radius: 0; /* Remove rounded corners for mobile */
    box-shadow: none; /* Remove shadow for mobile */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure top and bottom areas are visible */
  }

  .content {
    flex: 1; /* Allow content to grow and shrink */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    padding: 16px;
  }

  .signup {
    padding: 1rem;
    text-align: center;
  }
}

/* ========== Header Rows ========== */
.header-row {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.toggle-row {
  justify-content: flex-end;
  padding-top: 16px;
}

.logo-row {
  justify-content: center;
  margin-top: 8px;
}

.lang-row {
  justify-content: flex-end;
  margin-top: 8px;
  padding-right: 16px;
}

/* ========== Logo ========== */
.logo-img {
  width: 160px;
}

/* ========== Dark/Light Switch ========== */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d1d6;
  border-radius: 24px;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(55, 60, 80, 0.1);
  transition: 0.3s;
}

input:checked + .slider {
  background: #556cb2;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ========== Language Toggle ========== */
.lang-toggle {
  background: #f0f4ff; /* Light background */
  border: none;
  border-radius: 20px;
     padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 15px;
    padding-right: 30px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px; /* Space between code and globe */
  box-shadow: 0 1px 3px rgba(40, 50, 80, 0.1);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative; /* Ensure proper positioning for overlapping elements */
}

.lang-toggle:hover {
  background: #e0e7ff; /* Slightly darker on hover */
  box-shadow: 0 2px 6px rgba(40, 50, 80, 0.15);
}

.lang-code {
  /*color: #23233c; /* Dark text color */
  z-index: 1; /* Ensure the text stays above the globe */
}

/* Globe Background */
.globe-bg {
  width: 36px; /* Larger size for the globe */
  height: 36px;
  background: #556cb2; /* Blue background for the globe */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute; /* Position it relative to the button */
  right: -10px; /* Adjust to overlap the button */
  z-index: 0; /* Ensure it appears behind the text */
}

/* Globe Icon */
.lang-globe {
width: 27px;
    height: 27px;
 /* filter: invert(1); /* White globe icon */
}

/* Dropdown Menu */
.lang-dropdown {
  position: absolute;
  top: 48px;
  right: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(45, 55, 130, 0.09);
  list-style: none;
  padding: 0.5em 0;
  min-width: 140px;
  border: 1px solid #dbe2f7;
}

.lang-dropdown.hidden {
  display: none;
}

.lang-dropdown li {
  padding: 0.5em 1em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lang-dropdown li:hover {
  background: #f6f8ff;
}

.lang-dropdown img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
}
body.dark .globe-bg {
    background: #f7931e;
}
/* ========== Main Content ========== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 32px;
}

/* Light Mode: Login Button */
.login-btn {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9em 0;
  width: 80%;
  max-width: 280px;
  background: #556cb2;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(92, 106, 220, 0.07);
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
}

.login-btn:hover {
  background: #44559c;
  box-shadow: 0 3px 26px rgba(76, 90, 215, 0.13);
}

.login-btn::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #fff;
}

/* ========== Bottom Sign-up Bubble ========== */
.signup {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
}

.signup a {
  color: #556cb2;
  font-weight: 600;
  text-decoration: none;
}

.signup a:hover {
  text-decoration: underline;
}

body.dark .signup {
  background: transparent; /* Removes the dark bar */
  color: #ffffff; /* Ensures text is visible in dark mode */
}

body.dark .signup a {
  color: #F6961E !important; /* Matches the link color to the design */
  text-decoration: none;
}

body.dark .signup a:hover {
  color: #82CFFF; /* Optional: Add hover effect for links */
}

/* ========== Dark Mode Text & Controls ========== */
body.dark .title {
  color: #f8f8ff;
}

body.dark .tagline {
  color: #9bb6ff;
}

body.dark .login-btn {
  background: #10121E !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}

body.dark .login-btn:hover {
  background: #556cb2;
}

body.dark .login-btn::after {
  color: #fff;
}

body.dark .lang-toggle {
  background: #2a2a2a;
  color: #eee !important;
}

body.dark .lang-toggle:hover {
  background: #3a3a4a;
}
