body {
  background-color: #f5f5f5;
  min-height: 100vh;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin-bottom: 20px;
}

.logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.login {
  min-height: 100vh;
  padding: 0;
}

.login .row {
  min-height: 100vh;
}

.logo {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed_position {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.login .card {
  background-color: transparent;
  padding: 30px 20px;
  border: 0px;
  border-radius: 10px;
  box-shadow: none;
  width: 50%;
  /* Adjust the width as needed */
  box-sizing: border-box;
}

.card h1 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 28px;
  color: #000;
  font-weight: bold;
  font-family: "Poppins", sans-serif !important;
}

.card form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 12px;
}

.remember {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  color: #000;
  font-size: 14px;
}

.card label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #000;
}

.welcom_text {
  position: relative;
}

.welcom_text svg {
  position: absolute;
  right: 43px;
  top: -40px;
}

.card input[type="text"],
.card input[type="password"] {
  padding: 10px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure consistent height and appearance across all inputs */
.card input[type="text"],
.card input[type="password"],
.card input[type="email"],
.card input[type="tel"],
.loginInput {
  height: 44px;
  line-height: 1.4;
  font-size: 16px;
  /* prevent mobile zoom */
  -webkit-appearance: none;
  appearance: none;
}

/* Add padding to email input fields in auth pages */
.card input[type="email"],
.loginInput[type="email"] {
  padding-left: 15px !important;
  padding-right: 15px !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

.card button[type="submit"] {
  background-color: #000;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}

.submit:hover {
  background: #000;
}

.register {
  margin-top: 15px;
}

.loginSubmit {
  margin-top: 12px;
}

.register p {
  text-align: center;
  color: #555;
  font-size: 13px;
}

.register p a {
  text-align: center;
  color: #000;
  font-size: 13px;
}

.loginInput {
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid #d8dadc;
  border-radius: 10px;
  padding: 10px 15px !important;
}

.loginInput:focus {
  outline: 0px;
  border: 1px solid #d8dadc;
}

#errorMessage {
  color: red;
  margin-top: 10px;
  text-align: center;
}

.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 2px solid #555;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.checkmark::before {
  content: "✓";
  color: white;
  font-size: 14px;
}

.checkbox-input:checked+.custom-checkbox {
  background-color: #000;
  border-color: #000;
}

.checkbox-input:checked+.custom-checkbox .checkmark {
  display: block;
}

.remember .forgot {
  cursor: pointer;
  margin-bottom: 0px;
  font-weight: 500;
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  .login {
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    background: #fff;
    width: 100vw;
  }

  .login .row {
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
    /* Allow row to fill screen */
    height: auto !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .col-md-6 {
    width: 100vw !important;
    padding: 0 !important;
    flex: 0 0 auto;
    max-width: 100vw !important;
  }

  /* Target the second column (Form container) to take remaining height and full width */
  .col-md-6:last-child {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Logo Image Area - Strictly Full Width */
  .logo {
    height: auto;
    margin-bottom: 0;
    padding: 0 !important;
    min-height: auto;
    width: 100% !important;
    overflow: hidden;
  }

  .logo img {
    width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
  }

  /* Ensure the column wrapping the logo has ZERO padding and doesn't grow */
  .col-md-6:first-child {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    flex: 0 0 auto;
    /* Don't grow */
  }

  /* Card / Form Area - Full Width */
  .login .card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 20px;
    margin: 0;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  /* Force vertical centering within the form column */
  .fixed_position {
    min-height: auto;
    padding: 20px 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    /* Allow full width */
    flex: 1;
    width: 100%;
  }

  .welcom_text {
    margin-top: 10px;
    text-align: center;
    width: 100%;
  }

  .welcom_text h1 {
    font-size: 24px;
    margin-top: 5px;
  }

  /* Center the star icon above text */
  .welcom_text svg {
    position: relative;
    right: auto;
    top: auto;
    margin-bottom: -5px;
    display: inline-block;
    transform: none;
  }

  /* Ensure all form inputs are full width */
  .login .card form {
    width: 100%;
  }

  .login .card .loginInput,
  .login .card input[type="email"],
  .login .card input[type="password"],
  .login .card input[type="text"],
  .login .card input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .login .card button[type="submit"],
  .login .card .submit {
    width: 100%;
    max-width: 100%;
  }

  .login .card label {
    width: 100%;
    text-align: left;
  }

  .register {
    width: 100%;
  }

}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .login .card {
    width: 100%;
  }

  .welcom_text svg {
    position: absolute;
    right: 15px;
    top: -36px;
  }
}

@media screen and (min-device-width: 820px) and (max-device-width: 1180px) and (orientation: landscape) {
  .login .card {
    width: 100%;
  }

  .welcom_text svg {
    position: absolute;
    right: 70px;
    top: -40px;
  }
}

/* ========== */