/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin:0; padding:0; }
body.landing-page {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #e8ebf4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Light mode background for public pages */
body.landing-page .phone-wrapper {
  background: #f8f9fc url('../img/background_light_public.png') no-repeat bottom center;
  background-size: cover;
}

/* ========== Phone Wrapper ========== */
.phone-wrapper {
  position: relative;
  width: 100%; /* Full width for mobile */
  height: 100vh; /* Full height of the viewport */
  border-radius: 0; /* Remove rounded corners for mobile */
  overflow: hidden;
  box-shadow: none; /* Remove shadow for mobile */
  background: #f8f9fc url('../img/background_light.png') no-repeat bottom center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

body.dark .phone-wrapper {
  background: #18192a url('../img/background_dark.png') no-repeat bottom center;
  background-size: cover;
}

/* Remove logo for public pages */
body.landing-page .logo-row {
  display: none;
}

/* ========== 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 ========== */
/* Language Toggle Button */
.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;
}

/* ========== Main Content ========== */
.content {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding: 0 24px;
  margin-top: 56px;
}
.title {
  font-size:2.2rem;
  font-weight:700;
  color:#23233c;
  margin-bottom:12px;
}
.tagline {
  font-size:1rem;
  color:#556cb2;
  line-height:1.5;
  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; /* Ensure the arrow is positioned correctly */
}

.login-btn:hover {
  background: #44559c;
  box-shadow: 0 3px 26px rgba(76, 90, 215, 0.13);
}

/* Add the arrow in light mode */
.login-btn::after {
  content: "→"; /* Unicode arrow */
  position: absolute;
  right: 20px; /* Adjust spacing from the right edge */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #fff; /* White arrow */
}

/* ========== Bottom Sign-up Bubble ========== */
.signup {
  text-align:center;
  font-size:0.95rem;
  color:#a0a7c3;
  padding:14px 0;
  background:#fff;
}
.signup a {
  color:#f7931e;
  font-weight:600;
}
body.dark .signup {
 background: transparent;
    color: #ffffff;
}
body.dark .signup a {
  color:#f7a248;
}

/* ========== Dark Mode Text & Controls ========== */
body.dark .title { color:#f8f8ff; }
body.dark .tagline { color:#9bb6ff; }
body.dark .login-btn { background: transparent !important; border: 1px solid #fff !important; color: #fff !important; position: relative; }
body.dark .login-btn:hover { background:#556cb2; }
body.dark .login-btn::after {
  content: "→";
  font-size: 1.2em;
  line-height: 1;
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%);
}
body.dark .lang-toggle {
  background: #3a3a4a; /* Darker background for the button */
  color: #eee; /* Light text color */
}
body.dark .lang-toggle:hover {
  background: #4a4a5a; /* Slightly lighter on hover */
}
body.dark .globe-bg {
  background: #f7931e; /* Orange background for the globe */
}
body.dark .lang-code {
  color: #ffffff; /* White text color */
}
body.dark .bottom-link { color: rgba(255,255,255,0.7); }
body.dark .bottom-link a { color: #f7931e; }

/* ========== Mobile Override ========== */
@media (max-width:400px) {
  .phone-wrapper {
    width:100%; height:auto;
    border-radius:0;
    min-height:100vh;
    box-shadow:none;
  }
  .header-row { padding:0 12px; }
  .content { margin-top:24px; }
  .login-btn { width:90%; }
}

/* ========== Desktop Override ========== */
@media (min-width: 768px) {
  .phone-wrapper {
    width: 380px; /* Fixed width for desktop */
    height: 780px; /* Fixed height for desktop */
    border-radius: 32px; /* Rounded corners for desktop */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* Add shadow for desktop */
  }
}

/* ========== Form Group ========== */
/* Position the icons inside the input fields */
.form-group {
  position: relative;
}

.form-group i {
  position: absolute;
  left: 10px; /* Adjust the position as needed */
  top: 50%;
  transform: translateY(-50%);
  color: #888; /* Icon color */
  font-size: 1.2rem; /* Adjust icon size */
  pointer-events: none; /* Prevent interaction with the icon */
}

.form-group input {
  padding-left: 40px; /* Add padding to make space for the icon */
}

body.dark .form-group i {
  color: #ccc; /* Adjust icon color for dark mode */
}
/* ========== Register Form Figma Adjustments ========== */

/* ---- 1. Title and Subtitle ---- */
#form-title {
  text-align: left;
  font-size: 2rem;              /* Large but not too big */
  font-weight: 700;
  margin-bottom: 0.1em;
  margin-top: 0;
  color: #222336;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-family: 'Montserrat', Arial, sans-serif;
}
body.dark #form-title {
  color: #fff;
}

#register-message {
  text-align: left;
  font-size: 1.04rem;           /* Slightly smaller, like Figma */
  font-weight: 400;
  color: #5a5a77;
  margin-bottom: 2em;
  margin-top: 0.2em;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.4;
  opacity: 0.92;
  font-family: 'Montserrat', Arial, sans-serif;
}
body.dark #register-message {
  color: #ccccdd;
  opacity: 0.92;
}

/* ---- 2. Form Inputs ---- */
#register-form .form-group {
  margin-bottom: 1em;
}
#register-form .form-control {
  height: 44px;                       /* Compact! */
  font-size: 1rem;                    /* Smaller font */
  border-radius: 999px !important;    /* Pill shape */
  background: #f6f6fa;
  border: 1.5px solid #e3e5ee;
  color: #23233c;
  box-shadow: none;
  padding-left: 40px;
  padding-right: 16px;
  transition: border 0.2s, box-shadow 0.2s;
}
#register-form .form-control:focus {
  border-color: #556cb2;
  background: #fff;
  box-shadow: 0 2px 8px rgba(85, 108, 178, 0.06);
  color: #222336;
}
body.dark #register-form .form-control {
  background: #575b6f;
  color: #fff;
  border: 1.5px solid #323354;
}
body.dark #register-form .form-control:focus {
  background: #575b6f;
  border-color: #f7931e;
  color: #fff;
}

/* Icon inside input - smaller and more subtle */
#register-form .form-group i {
  left: 14px;
  font-size: 1.07rem;
  color: #9ca2b3;
  opacity: 0.7;
  top: 50%;
  transform: translateY(-50%);
}
body.dark #register-form .form-group i {
  color: #d3d3ed;
  opacity: 0.8;
}

/* ---- 3. Button ---- */
#register-form .btn-primary, 
#submit-button {
     font-size: 1.1rem;
    font-weight: 600;
    
    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;
}
#register-form .btn-primary:hover,
#submit-button:hover {
  background: #556cb2;
}
body.dark #register-form .btn-primary,
body.dark #submit-button {
 background: #10121E !important;
    border: 1px solid #fff !important;
    color: #fff !important;
}
body.dark #register-form .btn-primary:hover,
body.dark #submit-button:hover {
  background: #10121E !important;
}
.align-left {
  text-align: left !important;
  width: 100%;
  max-width: 340px;
  margin-left: 0;
  margin-right: 0;
  display: block;
}
/* Light mode - placeholder */
#register-form .form-control::placeholder {
  color: #b1b6c7;    /* Example: soft grey-blue */
  opacity: 1;        /* Full opacity */
}

/* Dark mode - placeholder */
body.dark #register-form .form-control::placeholder {
  color: #a9aacb;    /* Example: lighter grey-blue for dark backgrounds */
  opacity: 1;
}
/* ========== Login Form Figma Adjustments ========== */

/* Title and Subtitle */
#form-title {
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  margin-top: 0;
  color: #222336;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-family: 'Montserrat', Arial, sans-serif;
}
body.dark #form-title {
  color: #fff;
}

#login-message {
  text-align: left;
  font-size: 1.07rem;
  font-weight: 400;
  color: #5a5a77;
  margin-bottom: 1.4em;
  margin-top: 0.3em;
  font-style: italic;
  opacity: 0.92;
  font-family: 'Montserrat', Arial, sans-serif;
}
body.dark #login-message {
  color: #ccccdd;
}

/* Utility class for left alignment */
.align-left {
  text-align: left !important;
  width: 100%;
  max-width: 340px;
  margin-left: 0;
  margin-right: 0;
  display: block;
}

/* Compact, pill inputs for login & register */
#login-form .form-control,
#register-form .form-control {
  height: 44px;
  font-size: 1rem;
  border-radius: 999px !important;
  background: #f6f6fa;
  border: 1.5px solid #e3e5ee;
  color: #23233c;
  box-shadow: none;
  padding-left: 40px;
  padding-right: 16px;
  margin-bottom: 10px;
  transition: border 0.2s, box-shadow 0.2s;
}
#login-form .form-control:focus,
#register-form .form-control:focus {
  border-color: #556cb2;
  background: #fff;
  box-shadow: 0 2px 8px rgba(85, 108, 178, 0.06);
  color: #222336;
}
body.dark #login-form .form-control,
body.dark #register-form .form-control {
  background: #575b6f;
  color: #fff;
  border: 1.5px solid #323354;
}
body.dark #login-form .form-control:focus,
body.dark #register-form .form-control:focus {
  background: #575b6f;
  border-color: #f7931e;
  color: #fff;
}

/* Placeholder color for both forms */
#login-form .form-control::placeholder,
#register-form .form-control::placeholder {
  color: #b1b6c7;
  opacity: 1;
}
body.dark #login-form .form-control::placeholder,
body.dark #register-form .form-control::placeholder {
  color: #a9aacb;
  opacity: 1;
}

/* Button for both login and register (pill shape) */
#login-form .btn-primary, #submit-button,
#register-form .btn-primary {
  font-size: 1.1rem;
  font-weight: 600;
  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;
  margin-top: 12px;
  margin-bottom: 12px;
}
#login-form .btn-primary:hover, #register-form .btn-primary:hover,
#submit-button:hover {
  background: #44559c;
}
body.dark #login-form .btn-primary,
body.dark #register-form .btn-primary,
body.dark #submit-button {
  background: #10121E !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}
body.dark #login-form .btn-primary:hover,
body.dark #register-form .btn-primary:hover,
body.dark #submit-button:hover {
  background: #222336 !important;
}

/* Align links under form left (optional: Figma style) */
#forgot-link, #register-link {
  display: block;
  text-align: left;
  margin-left: 0;
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.98rem;
  color: #3465cf;
  font-family: 'Montserrat', Arial, sans-serif;
}
#register-link {
  color: #1d4ed8;
  font-weight: 500;
}
body.dark #forgot-link, body.dark #register-link {
  color: #f7931e;
}
/* Forgot password button inside password input */
.forgot-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: #f0f4ff;
  /* color: #246bfa; */
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 4px 14px;
  z-index: 2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.forgot-btn:hover {
  background: #e0e7ff;
  color: #1952bb;
  text-decoration: underline;
}
body.dark .forgot-btn {
  background: #222336;
  color: #f7931e;
}
body.dark .forgot-btn:hover {
  background: #18192a;
  color: #fff;
}
/* Make space for the button in the password field */
#login-form #password.form-control {
  padding-right: 90px;
}
#login-form .show-password-row {
  display: flex;
  align-items: center;
  margin-top: -6px;
  margin-bottom: 18px;
}
#login-form .show-password-row .form-check-input {
  margin-right: 8px;
  margin-top: 0;
}
#login-form .show-password-row label {
  font-size: 0.99rem;
  font-weight: 400;
  color: #555;
  user-select: none;
  cursor: pointer;
}
body.dark #login-form .show-password-row label {
  color: #ccc;
}
