@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  margin: 0;
  padding: 0;
  background-color: #f7f8f8;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 100px;
  flex-wrap: wrap;
}

.left-banner {
  flex: 1;
  max-width: 60%;
  height: 100%;
  border: 1px solid #00182f;
  background: #062341;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.right-login {
  margin: auto 0;
  width: 40%;
  max-width: 400px;
  justify-content: center;
  align-items: center;
}

.right-login .login-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  margin: 0;
  padding: 0 10px 0 0;
}

#api {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#api form {
  width: 100%;
  max-width: 400px; /* Restrict form width to avoid overflow */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-container .title .text {
  color: #1e1e1e;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.intro {
  margin-bottom: 10px;
  font-weight: 600;
  color: #7a7a7a;
  opacity: 0.8;
  font-size: 14px;
}

.divider {
  font-weight: 600;
  color: #7a7a7a;
  opacity: 0.8;
  font-size: 10px;
}

/* Style for email and password input fields */
.entry-item input[type="email"],
.entry-item input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  color: #212121;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  border-radius: 4px;
  border: 1px solid #bdc4ca;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  margin-bottom: 10px;
}

/* Visually hide the labels but keep them accessible for screen readers */
.entry-item label, .create, .divider, .password-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.entry-item input[type="email"]:focus,
.entry-item input[type="password"]:focus {
  border: 2px solid #ec7f1f; /* Highlight border on focus */
  outline: none;
}

/* Password visibility icon */
.pwd .input-field .pwd-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style for the "Sign in" button */
.buttons button#next {
  width: 100%;
  background-color: #ec7f1f;
  color: white;
  border-radius: 80px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* Style for button on click (active state) */
.buttons button#next:active {
  background-color: #dc6d0c; /* Darker color when clicked */
  transform: scale(0.98);    /* Slightly shrink button on click */
}

/* Style for button when focused */
.buttons button#next:focus {
  outline: 2px solid #ec7f1f; /* Add an outline when button is focused */
}

.buttons button#next:hover {
  background-color: #dc6d0c;
}

/* Style for "Forgot your password?" link */
.password-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.password-label a#forgotPassword {
  margin-top: 10px; /* Add space between the password input and the link */
  font-size: 14px;
  color: #ec7f1f;
  font-weight: 500;
  text-decoration: none;
}

.password-label a#forgotPassword:hover {
  text-decoration: underline;
}

/* Error message styling */
.error.itemLevel p {
  font-size: 12px;
  color: red;
  margin-top: 5px;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
  .container {
    flex-direction: column;
    gap: 0;
  }

  .left-banner {
    max-width: 60%;
    max-height: 30%;
    border: none;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
  }

  /* Adjust logo image in left-banner */
  .left-banner .logo img {
    width: 80%;
    max-width: 200px;
    height: auto;
    position: relative;
    top: 62px;
    margin-bottom: 20px;
  }

  /* Adjust banner image */
  .banner-img {
    width: 100%;
    height: auto;
    position: relative;
    top: 20px;
    margin-bottom: 20px;
  }

  .banner-img img {
    width: 100%;
    height: auto;
  }

  /* Full width right-login container on mobile portrait */
  .right-login {
    width: 100%;
    max-width: 100%;
    order: 2;
    padding: 16px;
    margin-top: 40px;
  }

  .login-container {
    padding: 10px 20px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .container {
    gap: 0;
  }

  /* Left-banner takes 50% of screen on tablets */
  .left-banner {
    max-width: 50%;
  }

  /* Adjust logo and banner image sizes for tablets */
  .left-banner .logo img,
  .left-banner .banner-img img {
    width: 90%;
  }

  /* Adjust right-login position and margins */
  .right-login {
    margin: auto 45px;
  }
}

/* Target tablets and mobile devices in landscape mode */
/* For tablets and all mobile devices in landscape mode */
@media only screen and (min-width: 768px) and (max-width: 1024px),
  only screen and (max-width: 767px) and (orientation: landscape) {
  
  .container {
    gap: 0;
  }

  /* In landscape mode, left-banner takes 50% of the screen */
  .left-banner {
    max-width: 50%;
  }

  /* Adjust logo and banner image sizes for landscape mode */
  .left-banner .logo img,
  .left-banner .banner-img img {
    width: 90%;
  }

  /* Adjust right-login position and margins for landscape mode */
  .right-login {
    margin: auto 45px;
  }
}

