
/* SEMHOS MOBILE AUTH FIX 6.4.11 */

/* Telefon ve kucuk tabletler */
@media screen and (max-width: 820px) {

  html:has(.semhos-auth-stage),
  body:has(.semhos-auth-stage) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
  }

  .semhos-auth-stage {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 100svh !important;
    height: auto !important;
    padding: 24px 14px 34px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .semhos-auth-stage,
  .semhos-auth-stage * {
    box-sizing: border-box !important;
  }

  .semhos-auth-stage .auth-frame {
    display: block !important;
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
    max-width: 510px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    overflow: visible !important;
    border-radius: 20px !important;
  }

  /* Buyuk tanitim paneli yerine dogrudan giris */
  .semhos-auth-stage .auth-showcase {
    display: none !important;
  }

  .semhos-auth-stage .auth-form-panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 28px 22px 26px !important;
    border-radius: 20px !important;
    overflow: visible !important;
    transform: none !important;
  }

  .semhos-auth-stage .auth-brandline {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .semhos-auth-stage .auth-brandline img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    flex: 0 0 48px !important;
    object-fit: contain !important;
  }

  .semhos-auth-stage .auth-brandline span,
  .semhos-auth-stage .auth-brandline strong,
  .semhos-auth-stage .auth-brandline small {
    overflow-wrap: anywhere;
  }

  .semhos-auth-stage .auth-login-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .semhos-auth-stage .auth-login-form input:not([type="hidden"]) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  .semhos-auth-stage .auth-login-form button {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 12px !important;
  }

  .semhos-auth-stage h1,
  .semhos-auth-stage h2 {
    font-size: clamp(25px, 7vw, 34px) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  .semhos-auth-stage .auth-footer,
  .semhos-auth-stage .auth-form-footer,
  .semhos-auth-stage .auth-copyright {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    text-align: center;
  }

}

@media screen and (max-width: 390px) {
  .semhos-auth-stage {
    padding: 14px 10px 25px !important;
  }

  .semhos-auth-stage .auth-form-panel {
    padding: 22px 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .semhos-auth-stage *,
  .semhos-auth-stage *::before,
  .semhos-auth-stage *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* SEMHOS MOBILE SHOWCASE HIDE FIX */
@media screen and (max-width: 820px) {
  body .login-bg .auth-showcase,
  body .semhos-auth-stage .auth-showcase,
  body .auth-frame > .auth-showcase,
  .auth-showcase {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body .login-bg,
  body .semhos-auth-stage,
  body .auth-frame {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  body .auth-frame .auth-form-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}
