.er-login-main {
    /* background-image: linear-gradient(135deg, #FAB2FF 10%, #d52627b8 100%); */
    background-image: linear-gradient(135deg, #d7816a3d 10%, #d52627 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Open Sans", sans-serif;
    color: #333333;
    height: auto;
    align-items: center;
    padding: 70px 30px;
    display: flex;
  }
  .registration, .forget{
    height: auto !important;
    padding-block:70px ;
  }
  .registration label {
    margin-left: 0;
    text-align: initial;
}
  .er-login-main .right p a{
    color: #d52627;
    text-decoration: underline;
  }
  
  .box-form {
    margin: 0 auto;
    max-width: 1230px;
   width: 100%;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 600px;
    box-shadow: 0 0 20px 6px #090b6f0a;
  }
 
  .box-form div {
    height: auto;
  }
  .box-form .left {
    color: #FFFFFF;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("../images/foji.jpeg");
    overflow: hidden;
    max-width: 58%;
    width: 100%;
    min-width: 0;
    background-position: center center;
  }
  .box-form .left .overlay {
    padding: 30px;
    width: 100%;
    height: 100%;
    background: #2d010152;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .box-form .left .overlay h1 {
    font-size: 10vmax;
    line-height: 1;
    font-weight: 900;
    margin-top: 40px;
    margin-bottom: 20px;
    
  }
  .box-form .left .overlay span p {
    margin-top: 30px;
    font-weight: 700;
  }
  .box-form .left .overlay span a {
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 3px 6px 1px #042d4657;
    width: 42px;
    height: 42px;
    border: 1px solid #d52627;
    text-align: center;
    line-height: 41px;
    vertical-align: middle;
    margin: 20px 15px 20px 0;
    transition: 0.5s ease;
  }
  .box-form .left .overlay span a:hover {
    background-color: #d52627;
    transition: 0.5s ease;

}
  span.erp-social {
    margin-top: 60px;
    display: block;
}
  .box-form .right {
    padding: 40px;
    overflow: hidden;
    max-width: 40%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
 
  .overlay img {
    max-width: 180px;
    margin-bottom: 40px;
}

  .box-form .right h5 {
    font-size: 63px;
    margin: 40px 0 35px;
    line-height: 42px;
    font-weight: 900;
  }
  .box-form .right p, .box-form .right a {
    font-size: 14px;
    color: #B0B3B9;
    text-decoration: none;
  }
  .box-form .right .inputs {
    overflow: hidden;
  }
  .box-form .right input {
    width: 100%;
    padding: 10px;
    margin-top: 25px;
    font-size: 16px;
    border: none;
    outline: none;
    border-bottom: 2px solid #B0B3B9;
  }
  .box-form .right .remember-me--forget-password {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
  }
  .box-form .right .remember-me--forget-password input {
    margin: 0;
    margin-right: 7px;
    width: auto;
  }
  .box-form .right button {
    color: #fff;
    font-size: 16px;
    padding: 12px 35px;
    border-radius: 50px;
    display: inline-block;
    border: 0;
    outline: 0;
    box-shadow: 0px 4px 20px 0px #d5262780;
    background-color: #d52627;
    cursor: pointer;
  }
  label {
    display: block;
    position: relative;
    margin-left: 30px;
  }
  .site-footer__copyright--bottom :is(p, a){
    color: #fff;
  }
 
  .er-login-main .overlay p {
    color: #fff;
    max-width: 419px;
    width: 100%;
}
  .erp-login{
    margin-top: 0 !important;
  }
  .erp-login-header .menu-item .custom-container {
    padding: 0;
}
/* registeration */
.sucess-text-registration{
  display: block;
font-size: 22px;
  text-align: center !important;
}
.registration .box-form {
  min-height: 841px;
}
.registration .box-form .left {
 
  background-position: 87% 100% !important;
}
.registration .right{
  max-width: 45%;
}
.registration .left{
  max-width: 55%;
}
.registration .box-form .right input {
  border: 1px solid rgba(61,66,70,.85);
  margin-top: 0;
}
/* Registration selects: match inputs, prevent iOS zoom + horizontal overflow */
.registration .box-form .right select,
.hospital-registration .form-vertical select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.25;
  border: 1px solid rgba(61,66,70,.85);
  border-radius: 4px;
  background-color: #fff;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.registration .custom-container,
.hospital-registration .custom-container {
  max-width: 100%;
  box-sizing: border-box;
}
.registration #CustomerLoginForm,
.hospital-registration #CustomerLoginForm {
  max-width: 100%;
  min-width: 0;
}
.registration-supervisor-scroll {
  max-height: min(220px, 45vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-bottom: 8px;
  padding-right: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.registration-supervisor-scroll > .registration-supervisor-title,
.registration-supervisor-scroll > label.form-check-label:first-child {
  display: block;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 0;
  margin-left: 0 !important;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: #333333;
  -webkit-text-fill-color: #333333;
}

/*
 * Hospital registration: use plain checkboxes in a flex row (not BS5 .form-switch).
 * form-switch + global flex resets removed padding-left / negative margin math and hid
 * label text in Safari and other WebKit browsers.
 */
.hospital-registration .hospital-reg-check-row.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 10px;
  float: none;
}
.hospital-registration .hospital-reg-check-row .form-check-input {
  float: none !important;
  margin: 0.2rem 0 0 0 !important;
  flex-shrink: 0;
  width: 1.125em;
  height: 1.125em;
  position: relative;
  left: auto;
  top: auto;
}
.hospital-registration .hospital-reg-check-row .form-check-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-bottom: 0;
  padding: 0;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  color: #333333 !important;
  -webkit-text-fill-color: #333333;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.registration-captcha-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.registration-captcha-target {
  min-height: 78px;
  transform: translateZ(0);
}
/*
 * BS5 .form-switch uses padding-left + negative margin-left on the input.
 * Mixing that with flex/row-reverse breaks WebKit (Safari iOS): text shifts off-canvas.
 * Reset positioning and use a normal row flex for registration only.
 */
.registration .form-check.form-switch,
.hospital-registration .form-check.form-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 8px;
  float: none;
}
.registration .form-check.form-switch .form-check-input,
.hospital-registration .form-check.form-switch .form-check-input {
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  flex-shrink: 0;
  position: relative;
  left: auto;
  top: auto;
}
.registration .form-check.form-switch .form-check-label,
.hospital-registration .form-check.form-switch .form-check-label {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-bottom: 0;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.text-center.forget-footer {
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
}
.box-form .right .remember-me--forget-password a {
  color: #000;
}
.box-form .right .remember-me--forget-password a:hover {
 text-decoration: underline;
}
.forget .box-form .right {
  padding: 40px;
  overflow: hidden;
  max-width: 42%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
select.erp-login-sele {
  width: 100%;
  padding: 10px;
  margin-top: 25px;
  font-size: 16px;
  border: none;
  outline: none;
  border-bottom: 2px solid #B0B3B9;
}
 /* =========================================== Query =============================== */
  @media (max-width: 980px) {
    .box-form {
      flex-flow: wrap;
      text-align: center;
      align-content: center;
      align-items: center;
    }
    .er-login-main {
      background-attachment: scroll;
    }
    .registration .box-form .right .form-vertical,
    .hospital-registration .box-form .right .form-vertical {
      text-align: left;
    }
  }
  @media (max-width: 980px) {
    .box-form :is(.right, .left), .er-login-main .overlay p{
      width: 100%;
      max-width: 100% !important;
    }
   
  }
  @media (max-width:767px) {
    .er-login-main {
      height: auto;
      padding: 70px 15px;
  }
  .overlay img {
   
    margin-bottom: 0;
}
.box-form .left .overlay {
  padding: 30px 15px;
}
.box-form .left .overlay span a {
 margin: 20px 15px 0px 0;
}
.box-form .left {
 
  background-position: 72% 48%;
}
.box-form .right h5 {
  font-size: 63px;
  margin: 15px 0 25px;
}
.box-form .right h5 {
  font-size: 48px;
}
.er-login-main.registration .form-vertical h1 {
  margin-block: 0 30px;
}
.registration .box-form .right {
  padding: 40px 15px;
}
.registration h1 {
  font-size: 30px;
}
  }

/* iOS Safari / narrow devices: avoid fixed backgrounds, huge min-heights, notch overlap */
@media screen and (max-width: 767px) {
  .er-login-main {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background-attachment: scroll;
  }
  .registration .box-form,
  .hospital-registration .box-form {
    min-height: 0;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: visible;
  }
  .registration .box-form .left {
    min-height: 200px;
  }
  .registration .box-form .right button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}