/**
 * CWSA login + verification — Dribbble-style card split.
 * Body: cwsa-login-page cwsa-ui-v2
 * Keep IDs: uname, pswd, btn-authen, scli-form-wrapper, btn-login, cbops, scli_code
 */

html body.cwsa-login-page,
html body.cwsa-login-page.cwsa-ui-v2 {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  background: #eef1f6 !important;
  background-color: #eef1f6 !important;
  background-image: none !important;
  font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif !important;
}

html body.cwsa-login-page::before,
html body.cwsa-login-page::after,
html body.cwsa-login-page .main-container::before,
html body.cwsa-login-page .main-container::after,
html body.cwsa-login-page .main-content::before,
html body.cwsa-login-page .main-content::after {
  content: none !important;
  display: none !important;
}

html body.cwsa-login-page .main-container,
html body.cwsa-login-page .main-content,
html body.cwsa-login-page .main-content > .row {
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100% !important;
  width: 100% !important;
  max-width: none !important;
}

html body.cwsa-login-page .cwsa-auth-shell {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px 20px !important;
  box-sizing: border-box !important;
  gap: 14px !important;
}

html body.cwsa-login-page .cwsa-auth-card {
  display: flex !important;
  width: 100% !important;
  max-width: 980px !important;
  min-height: 520px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden !important;
}

html body.cwsa-login-page .cwsa-auth-left {
  flex: 1 1 52% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 44px 48px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

html body.cwsa-login-page .cwsa-auth-panel {
  width: 100% !important;
  max-width: 360px !important;
}

html body.cwsa-login-page .cwsa-auth-brandline {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 34px !important;
}

/* Brand mark — larger, still compact like the reference */
html body.cwsa-login-page .cwsa-auth-logo {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  background: #e8e4f5 !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  box-shadow: none !important;
  flex: 0 0 56px !important;
}

html body.cwsa-login-page .cwsa-auth-brandname {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #121218 !important;
  line-height: 1.15 !important;
}

html body.cwsa-login-page .cwsa-auth-brandname small {
  display: block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

html body.cwsa-login-page .cwsa-auth-title {
  margin: 0 0 8px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

html body.cwsa-login-page .cwsa-auth-sub {
  margin: 0 0 26px !important;
  font-size: 14px !important;
  color: #6b7280 !important;
}

html body.cwsa-login-page .cwsa-auth-heading.is-hidden {
  display: none !important;
}

html body.cwsa-login-page #scli-form-wrapper,
html body.cwsa-login-page #scli-form-wrapper.no-border {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

html body.cwsa-login-page #scli-form-wrapper .widget-main,
html body.cwsa-login-page #scli-form-wrapper > div {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.cwsa-login-page #scli-form-wrapper label.block {
  margin-bottom: 14px !important;
  width: 100% !important;
}

html body.cwsa-login-page #scli-form-wrapper h4 {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

html body.cwsa-login-page #scli-form-wrapper .input-icon {
  width: 100% !important;
}

html body.cwsa-login-page #scli-form-wrapper .form-control,
html body.cwsa-login-page #scli-form-wrapper input.form-control,
html body.cwsa-login-page #scli-form-wrapper input[type="text"],
html body.cwsa-login-page #scli-form-wrapper input[type="password"],
html body.cwsa-login-page #scli-form-wrapper select.form-control,
html body.cwsa-login-page #scli-form-wrapper select,
html body.cwsa-login-page #uname,
html body.cwsa-login-page #pswd,
html body.cwsa-login-page #scli_code,
html body.cwsa-login-page #cbops {
  height: 48px !important;
  border-radius: 10px !important;
  -webkit-border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
  box-shadow: none !important;
  padding: 10px 14px 10px 42px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

html body.cwsa-login-page #scli-form-wrapper .form-control:focus,
html body.cwsa-login-page #uname:focus,
html body.cwsa-login-page #pswd:focus,
html body.cwsa-login-page #scli_code:focus {
  border-color: #2e236e !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(46, 35, 110, 0.15) !important;
  outline: none !important;
}

html body.cwsa-login-page #scli-form-wrapper .input-icon > .ace-icon,
html body.cwsa-login-page #scli-form-wrapper .input-icon > .fa {
  left: 14px !important;
  right: auto !important;
  line-height: 48px !important;
  color: #9ca3af !important;
  z-index: 3 !important;
}

html body.cwsa-login-page .cwsa-auth-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 4px 0 18px !important;
}

html body.cwsa-login-page #btn-authen,
html body.cwsa-login-page #btn-login,
html body.cwsa-login-page #scli-form-wrapper .btn-primary,
html body.cwsa-login-page #scli-form-wrapper .btn.btn-primary {
  height: 48px !important;
  border-radius: 10px !important;
  -webkit-border-radius: 10px !important;
  background: #2e236e !important;
  background-color: #2e236e !important;
  background-image: none !important;
  border: 1px solid #2e236e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 10px 22px rgba(46, 35, 110, 0.28) !important;
  text-shadow: none !important;
}

html body.cwsa-login-page #btn-authen:hover,
html body.cwsa-login-page #btn-login:hover {
  background: #241b58 !important;
  background-color: #241b58 !important;
  border-color: #241b58 !important;
  color: #ffffff !important;
}

html body.cwsa-login-page .forgot-password-link,
html body.cwsa-login-page #btn-get-code,
html body.cwsa-login-page #btn-login-page,
html body.cwsa-login-page .divforgotpswd a {
  color: #2e236e !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

html body.cwsa-login-page .divforgotpswd {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

html body.cwsa-login-page .cwsa-verify-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 6px 0 16px !important;
}

html body.cwsa-login-page .cwsa-verify-actions .fr,
html body.cwsa-login-page .cwsa-verify-actions .fl {
  float: none !important;
}

html body.cwsa-login-page #aut-response {
  display: block !important;
  margin-bottom: 12px !important;
  color: #241b58 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

html body.cwsa-login-page #scli-form-wrapper .help-block {
  color: #6b7280 !important;
  font-size: 12px !important;
  margin: 4px 0 14px !important;
}

html body.cwsa-login-page .select2-container {
  width: 100% !important;
}

html body.cwsa-login-page .select2-container--default .select2-selection--single {
  height: 48px !important;
  border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
}

html body.cwsa-login-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  padding-left: 14px !important;
  color: #111827 !important;
}

html body.cwsa-login-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

html body.cwsa-login-page .cwsa-auth-right {
  flex: 1 1 48% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 36px 28px !important;
  background: #2e236e !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

html body.cwsa-login-page .cwsa-auth-right::before {
  content: "" !important;
  position: absolute !important;
  width: 340px !important;
  height: 340px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -58%) !important;
}

html body.cwsa-login-page .cwsa-auth-carousel {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 360px !important;
  height: 240px !important;
  margin: 0 auto 18px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

html body.cwsa-login-page .cwsa-auth-slide {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  transform: translateY(8px) scale(0.98) !important;
  transition: opacity 0.55s ease, transform 0.55s ease !important;
  pointer-events: none !important;
}

html body.cwsa-login-page .cwsa-auth-slide.is-active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

html body.cwsa-login-page .cwsa-auth-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background: #ffffff !important;
  display: block !important;
}

html body.cwsa-login-page .cwsa-auth-right-inner {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  max-width: 320px !important;
}

html body.cwsa-login-page .cwsa-auth-right h2 {
  margin: 0 0 10px !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
}

html body.cwsa-login-page .cwsa-auth-right p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

html body.cwsa-login-page .cwsa-auth-dots {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  margin-top: 22px !important;
  position: relative !important;
  z-index: 2 !important;
}

html body.cwsa-login-page .cwsa-auth-dots span {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.35) !important;
  cursor: pointer !important;
}

html body.cwsa-login-page .cwsa-auth-dots span.is-active {
  background: #ffffff !important;
  width: 22px !important;
  border-radius: 999px !important;
}

/* Match portal.html Ace footer; pin on login so it stays visible */
html body.cwsa-login-page .footer,
html body.cwsa-login-page #cwsa_login_footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99999 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  background: #eef1f6 !important;
  border-top: 1px solid #d1d5db !important;
}
html body.cwsa-login-page .footer .footer-inner,
html body.cwsa-login-page .footer .footer-content {
  display: block !important;
  visibility: visible !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  padding: 10px 14px !important;
  margin: 0 !important;
}
html body.cwsa-login-page #cwsa_footer_copy,
html body.cwsa-login-page #cwsa_footer_copy .cwsa-portal-ver {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  line-height: 1.45 !important;
}
html body.cwsa-login-page {
  padding-bottom: 48px !important;
}

@media (max-width: 860px) {
  html body.cwsa-login-page .cwsa-auth-card {
    flex-direction: column !important;
    min-height: 0 !important;
  }
  html body.cwsa-login-page .cwsa-auth-right {
    min-height: 260px !important;
    order: -1 !important;
    padding: 28px 22px !important;
  }
  html body.cwsa-login-page .cwsa-auth-left {
    padding: 28px 22px 36px !important;
  }
  html body.cwsa-login-page .cwsa-auth-title {
    font-size: 24px !important;
  }
  html body.cwsa-login-page .cwsa-auth-right h2 {
    font-size: 22px !important;
  }
}
