/* LOGIN PAGE – FINAL STYLING (NO SCROLL, FULL BLEED) */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

/* Frappe wrappers */
#page-login,
#page-login .page-content,
#page-login .page-content-wrapper {
  height: 100vh;
  overflow: hidden;
}

/* Root flex */
#page-login .custom-login-wrapper {
  display: flex;
  height: 100vh;
}

/* LEFT IMAGE – FULL SCREEN */
#page-login .custom-login-image {
  width: 50%;
  height: 100vh;
  background-image: url("/assets/switz_ordering_app/images/login.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
}

/* RIGHT LOGIN PANEL */
#page-login .custom-login-form {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

/* Login card */
#page-login .page-card {
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Remove frappe logo */
#page-login .page-card-head img {
  display: none !important;
}

/* Title */
#page-login .page-card-head {
  text-align: center;
  border-bottom: none;
  margin-bottom: 24px;
}

#page-login .page-card-head h4 {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
  position: relative;
  white-space: nowrap;
}

/* Inputs + icons alignment */
#page-login .input-group {
  display: flex;
  align-items: center;
}

#page-login .input-group-text {
  height: 48px;
  display: flex;
  align-items: center;
  background: #f3f6fb;
  border: none;
  border-radius: 8px 0 0 8px;
}

#page-login .form-control {
  height: 35px !important;
  background: #f3f6fb;
  border: none;
  border-radius: 0 8px 8px 0;
  width: 100%;
}

/* Login button */
#page-login .btn-login {
  height: 35px !important;
  border-radius: 10px;
  background: linear-gradient(90deg, #111, #333);
  font-weight: 600;
}

/* Forgot password */
#page-login .forgot-password {
  font-size: 13px;
}

.page-content-wrapper main {
  width: 100%;
  padding-right: 0px;
  padding-left: 0px;
  max-width: 100vw;
  margin: 0px !important;
}

#page-login .for-login {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

form {
  min-width: 400px;
  width: 100%;
}

.field-icon {
  top: 10px !important;
}

.custom-login-form nav {
  display: none;
}

/* Password Show */
#page-login input[type="text"] {
  -webkit-text-security: none;
}

/* =====================================================
   RESPONSIVE – TABLET & IMAGE HIDE (900px - 991px)
   ===================================================== */
@media (max-width: 991px) {
  #page-login .custom-login-image {
    width: 42%;
  }

  #page-login .custom-login-form {
    width: 58%;
    padding: 20px;
  }

  #page-login .page-card {
    max-width: 100% !important;
    padding: 28px 22px;
  }

  form {
    min-width: 300px !important;
  }

  #page-login .page-card-head h4 {
    font-size: 26px;
  }
}

@media screen and (min-width : 901px) {
  .page-content-wrapper .container {
    padding-left: 0px;
    padding-right: 0px;
  }
}

@media (max-width: 900px) {

  html,
  body {
    overflow: auto;
    overflow-x: hidden !important;
  }

  #page-login,
  #page-login .page-content,
  #page-login .page-content-wrapper {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  #page-login .custom-login-wrapper {
    display: block !important;
    width: 100% !important;
    height: auto;
    min-height: 100vh;
  }

  #page-login .custom-login-image {
    display: none !important;
  }

  #page-login .custom-login-form {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    padding: 30px 20px !important;
  }

  #page-login,
  #page-login .page-content,
  #page-login .page-content-wrapper {
    height: auto;
    overflow: visible;
  }


}

/* =====================================================
   RESPONSIVE – SMALL MOBILE (max-width: 470px)
   ===================================================== */
@media (max-width: 470px) {
  .page-content-wrapper .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #page-login .page-card {
    padding: 24px 16px;
    border-radius: 12px;
  }

  #page-login .form-control {
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  form {
    min-width: 100% !important;
  }
}