/* App 116 Islamic Teacher login only.
   Photoreal modern teacher workspace with all-in-one PC, Al-Khair Qaida, desk mic & speaker, landscape window view + top-right wall login card.
   Beats cloned NEXL Page 9999 inline CSS (nexl-login-*) and also
   supports page CSS classes itp-login-page / alkhair-login. */

html, body,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact,
html body.t-PageBody--login.itp-login-page.alkhair-login,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-PageBody,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-PageBody,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Body,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Body {
  background: #f1ede5 !important;
  background-image: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-bg,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-bgImg {
  display: none !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #wwvFlowForm,
html body.t-PageBody--login.itp-login-page.alkhair-login #wwvFlowForm {
  background-color: #f1ede5 !important;
  background-image: url(alkhair-teacher-login-modern-qaida.jpg?v=20260822_landscape_desk_v12) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
}

/* Position login box at the top right on the wall */
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-region,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-region {
  position: absolute !important;
  left: auto !important;
  right: 7vw !important;
  top: 36% !important;
  transform: translateY(-50%) !important;
  width: min(500px, 44vw) !important;
  min-width: 380px !important;
  max-width: 530px !important;
  height: auto !important;
  padding: 34px 36px 30px !important;
  overflow: visible !important;
  border: 1px solid rgba(78, 99, 76, .24) !important;
  border-radius: 22px !important;
  background-color: rgba(255, 255, 252, .96) !important;
  background-image: linear-gradient(145deg, rgba(255,255,252,.98), rgba(241,244,235,.94)) !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  background-size: cover !important;
  box-shadow: 0 28px 70px rgba(36, 51, 33, .22), 0 2px 8px rgba(36, 51, 33, .08) !important;
  z-index: 4 !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-region::before,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-region::before {
  content: "Al-Khair Teacher Portal" !important;
  display: block !important;
  margin: 0 0 16px !important;
  color: #2d553d !important;
  font: 700 22px/1.2 "Palatino Linotype", Georgia, serif !important;
  letter-spacing: .01em !important;
  text-align: center !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-region::after,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-region::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-header,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-header {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Login-only Al-Khair Arabic mark supplied by the LMS owner. The source PNG
   is already transparent, so no white panel is introduced on the login card. */
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-logo,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-logo {
  display: block !important;
  width: min(124px, 35vw) !important;
  height: 124px !important;
  margin: 0 auto 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  /* A single direct PNG avoids nested asset loading differences. */
  background-color: transparent !important;
  background-image: url("alkhair-arabic-emblem-transparent-256-20260902.png?v=alkhair_emblem_login_20260902_1") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  box-shadow: none !important;
  filter: none !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-logo img,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-logo img {
  display: none !important;
}

/* The current Universal Theme login header includes the native IMG beside the
   accessible decorative span.  Keep the native asset hidden so it cannot
   become a duplicate or leak through the intended lightweight wordmark. */
html body.t-PageBody--login.nexl-login-page.nexl-login-exact img.t-Login-logo,
html body.t-PageBody--login.itp-login-page.alkhair-login img.t-Login-logo {
  display: none !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-title,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-title {
  display: none !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-body,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-body {
  display: block !important;
  padding: 0 !important;
}

/* Fix icon inside login input wrapper */
.t-Login-region .t-Form-itemWrapper,
.t-PageBody--login .t-Form-itemWrapper,
#wwvFlowForm .t-Form-itemWrapper,
.apex-item-wrapper--has-icon {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.t-Login-region .apex-item-icon,
.t-PageBody--login .apex-item-icon,
#wwvFlowForm .apex-item-icon,
.t-Login-region span.apex-item-icon,
.apex-item-wrapper--has-icon .apex-item-icon,
.t-Form-itemWrapper .apex-item-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 16px !important;
  line-height: 22px !important;
  text-align: center !important;
  color: #2d553d !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Force padding-left so input text NEVER overlaps icon */
html body.t-PageBody--login #wwvFlowForm input#P9999_USERNAME,
html body.t-PageBody--login #wwvFlowForm input#P9999_PASSWORD,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_USERNAME,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_USERNAME,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_PASSWORD,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_PASSWORD,
html body.t-PageBody--login .t-Login-region input.text_field,
html body.t-PageBody--login .t-Login-region input.password,
.t-Login-region input,
.t-Login-region input.text_field,
.t-Login-region input.password,
.t-Login-region #P9999_USERNAME,
.t-Login-region #P9999_PASSWORD,
.t-PageBody--login input#P9999_USERNAME,
.t-PageBody--login input#P9999_PASSWORD,
#P9999_USERNAME,
#P9999_PASSWORD {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 0 14px !important;
  padding: 0 16px 0 54px !important;
  padding-left: 54px !important;
  border: 1.5px solid #cbd5c7 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: #1e3524 !important;
  font-size: 15px !important;
  -webkit-text-fill-color: #1e3524 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  text-indent: 0 !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_USERNAME:focus,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_USERNAME:focus,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_PASSWORD:focus,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_PASSWORD:focus,
.t-Login-region input#P9999_USERNAME:focus,
.t-Login-region input#P9999_PASSWORD:focus {
  border-color: #3f7a57 !important;
  box-shadow: 0 0 0 4px rgba(63, 122, 87, .16) !important;
  outline: 0 !important;
}

/* Remember this device Checkbox Container */
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-containerBody .t-Form-fieldContainer:has(#P9999_REMEMBER),
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-containerBody .t-Form-fieldContainer#P9999_REMEMBER_CONTAINER,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Form-fieldContainer:has(#P9999_REMEMBER),
html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER_CONTAINER,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Form-fieldContainer:has(#P9999_REMEMBER),
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER_CONTAINER {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  min-height: 28px !important;
  margin: 6px 0 20px !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER_CONTAINER .t-Form-labelContainer,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER_CONTAINER .t-Form-labelContainer {
  display: none !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER_CONTAINER .t-Form-inputContainer,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER_CONTAINER .t-Form-itemWrapper,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER_CONTAINER .t-Form-inputContainer,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER_CONTAINER .t-Form-itemWrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  position: relative !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: 2 !important;
  display: inline-block !important;
  order: 1 !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  clip: auto !important;
  border: 2px solid #86ab92 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  accent-color: #2f6a4f !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER:checked,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER:checked {
  border-color: #2d553d !important;
  background-color: #2d553d !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.4'/></svg>") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 12px 12px !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER_LABEL,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact #P9999_REMEMBER_CONTAINER label,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER_LABEL,
html body.t-PageBody--login.itp-login-page.alkhair-login #P9999_REMEMBER_CONTAINER label {
  position: static !important;
  display: inline-block !important;
  order: 2 !important;
  flex: 0 1 auto !important;
  width: auto !important;
  color: #1f4d3a !important;
  font-family: "Segoe UI", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* Links & Forgot link */
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .nexl-forgot-link,
html body.t-PageBody--login.itp-login-page.alkhair-login .nexl-forgot-link,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact button.nexl-forgot-link,
html body.t-PageBody--login.itp-login-page.alkhair-login button.nexl-forgot-link,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Button.nexl-forgot-link,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Button.nexl-forgot-link {
  color: #3e7654 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Login Action Button */
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .nexl-secure-login-hotspot,
html body.t-PageBody--login.itp-login-page.alkhair-login .nexl-secure-login-hotspot,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact button.nexl-secure-login-hotspot,
html body.t-PageBody--login.itp-login-page.alkhair-login button.nexl-secure-login-hotspot,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Button.nexl-secure-login-hotspot,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Button.nexl-secure-login-hotspot,
html body.t-PageBody--login.itp-login-page.alkhair-login .t-Button--hot {
  display: block !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2d6647, #1b452f) !important;
  box-shadow: 0 10px 22px rgba(27, 69, 47, .28) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

html body.t-PageBody--login.nexl-login-page.nexl-login-exact .nexl-secure-login-hotspot:hover,
html body.t-PageBody--login.itp-login-page.alkhair-login .nexl-secure-login-hotspot:hover,
html body.t-PageBody--login.nexl-login-page.nexl-login-exact .nexl-secure-login-hotspot:focus,
html body.t-PageBody--login.itp-login-page.alkhair-login .nexl-secure-login-hotspot:focus {
  filter: brightness(1.08) !important;
}

@media (max-width: 1000px) {
  html, body,
  html body.t-PageBody--login.nexl-login-page.nexl-login-exact,
  html body.t-PageBody--login.itp-login-page.alkhair-login,
  html body.t-PageBody--login.nexl-login-page.nexl-login-exact #wwvFlowForm,
  html body.t-PageBody--login.itp-login-page.alkhair-login #wwvFlowForm {
    position: relative !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  html body.t-PageBody--login.nexl-login-page.nexl-login-exact #wwvFlowForm,
  html body.t-PageBody--login.itp-login-page.alkhair-login #wwvFlowForm {
    background-position: 28% center !important;
  }

  html body.t-PageBody--login.nexl-login-page.nexl-login-exact .t-Login-region,
  html body.t-PageBody--login.itp-login-page.alkhair-login .t-Login-region {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 28px auto !important;
    width: min(92vw, 440px) !important;
    min-width: 0 !important;
    padding: 92px 24px 28px !important;
  }
}
