/* SIMANTAP V28.43 | Presentation-only patch for login & registration.
   Preserves all server-side login and registration functionality.
   Use <img> contain, not cropped/darkened CSS backgrounds. */
body.sim-auth .sim-auth-layout {
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  min-height: 590px;
}
body.sim-auth .sim-visual,
body.sim-register .side-visual {
  background: #e9f3ef !important;
  position: relative;
  overflow: hidden;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px !important;
  color: #164b3b;
}
body.sim-auth .sim-visual { min-height: 0; }
body.sim-register .side-visual { min-height: 0; }
body.sim-auth .sim-visual::before,
body.sim-register .side-visual::after { display: none !important; }
body.sim-auth .sim-visual-picture,
body.sim-register .sim-visual-picture {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
body.sim-auth img.sim-hero-image,
body.sim-register img.sim-hero-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 660px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(25,74,58,.12);
  background-color: #ffffff;
}
body.sim-register .wrapper { align-items: stretch; }
body.sim-register .side-content { min-width:0; }
body.sim-auth .sim-auth-side,
body.sim-register .side-content { overflow-wrap:break-word; }
@media (min-width:861px) {
  body.sim-auth .sim-visual-picture,
  body.sim-register .sim-visual-picture { max-height: 760px; }
}
@media (max-width:860px) {
  body.sim-auth .sim-auth-layout { grid-template-columns: 1fr; min-height:100vh; }
  body.sim-auth .sim-visual,
  body.sim-register .side-visual {
    min-height: 0 !important;
    max-height: none;
    padding: 12px 12px 2px !important;
  }
  body.sim-auth img.sim-hero-image,
  body.sim-register img.sim-hero-image {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 210px;
    box-shadow: 0 3px 10px rgba(25,74,58,.08);
    border-radius: 8px;
  }
  body.sim-auth .sim-auth-side { padding-top: 22px; }
  body.sim-register .side-content { padding-top: 20px; }
}
@media (max-width:390px) {
  body.sim-auth img.sim-hero-image,
  body.sim-register img.sim-hero-image { max-height: 168px; }
  body.sim-auth .sim-auth-side { padding-top: 17px; }
  body.sim-register .side-content { padding-top: 17px; }
}
