body.sx-login-themes { min-height: 100dvh; overflow-x: hidden; }
body.sx-login-themes .sx-login-root { width: 100% !important; min-height: 100dvh !important; margin: 0 !important; }
body.sx-login-themes .sx-login-panel {
  position: relative; display: flex !important; align-items: center; justify-content: space-between;
  gap: 40px; min-height: 100dvh !important; width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 110px 60px 40px; overflow: visible;
  background: #244a62 url('/local-assets/sx-login-design-bg.jpg') center / cover no-repeat;
  box-sizing: border-box;
}
body.sx-login-themes .sx-login-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgb(0 0 0 / 23%), rgb(0 0 0 / 5%) 50%, rgb(0 0 0 / 15%));
}
body.sx-login-themes .sx-login-panel > .side-image,
body.sx-login-themes .sx-login-panel > .sx-login-auxiliary { display: none !important; }
body.sx-login-themes .sx-login-visual {
  position: relative; z-index: 1; flex: 1; max-width: 620px; align-self: stretch;
  display: flex; align-items: center; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / 50%);
}
body.sx-login-themes .sx-theme-brand {
  position: absolute; top: -78px; left: -12px; display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 600; letter-spacing: 1px; white-space: nowrap;
}
body.sx-login-themes .sx-theme-brand-mark {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; text-shadow: none;
}
body.sx-login-themes .sx-theme-brand-icon { display: block; width: 28px; height: 28px; object-fit: contain; }
body.sx-login-themes .sx-theme-copy { margin-top: -80px; }
body.sx-login-themes .sx-theme-copy h1 {
  margin: 0 0 20px; font-size: 40px; font-weight: 700; line-height: 1.4; letter-spacing: 3px;
}
body.sx-login-themes .sx-theme-copy p {
  margin: 0; font-size: 17px; font-weight: 300; line-height: 1.9; letter-spacing: 1px;
}
body.sx-login-themes .sx-login-panel > .login-form {
  position: relative; z-index: 1; flex: 0 0 440px; width: 440px; min-width: 0;
  padding: 44px 40px 36px !important; border-radius: 8px;
  color: #333; background: rgb(255 255 255 / 97%); box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
  box-sizing: border-box;
}
body.sx-login-themes .sx-login-panel > .login-form > div { width: 100% !important; margin: 0 !important; }
body.sx-login-themes .sx-login-form-header { margin-bottom: 32px; text-align: center; }
body.sx-login-themes .sx-login-form-header h2 {
  margin: 0 0 8px; color: #1a1a1a; font-size: 28px; font-weight: 700; line-height: 1.4;
}
body.sx-login-themes .sx-login-form-header p { margin: 0; color: #777; font-size: 14px; }
body.sx-login-themes .sx-login-panel .login-logo-box,
body.sx-login-themes .sx-login-panel .signin-methods { display: none !important; }
body.sx-login-themes .sx-login-panel .ant-form { width: 100% !important; margin: 0 !important; }
body.sx-login-themes .sx-login-panel .ant-form-item { margin-bottom: 18px; }
body.sx-login-themes .sx-login-panel .ant-form-item-label > label { font-weight: 600; }
body.sx-login-themes .sx-login-panel .ant-input,
body.sx-login-themes .sx-login-panel .ant-input-affix-wrapper,
body.sx-login-themes .sx-login-panel .ant-select-selector {
  min-height: 48px; color: #333; border-color: #e2e2e2; border-radius: 6px !important; background: #fff;
  font-size: 15px;
}
body.sx-login-themes .sx-login-panel .ant-input::placeholder { color: #999; }
body.sx-login-themes .sx-login-panel .ant-input-prefix,
body.sx-login-themes .sx-login-panel .ant-input-password-icon { color: #999; }
body.sx-login-themes .sx-login-panel .ant-checkbox-wrapper,
body.sx-login-themes .sx-login-panel .ant-form-item-label > label { color: #555; }
body.sx-login-themes .sx-login-panel .ant-input-affix-wrapper:focus-within,
body.sx-login-themes .sx-login-panel .ant-input:focus {
  border-color: #b8860b; box-shadow: 0 0 0 3px rgb(184 134 11 / 12%);
}
body.sx-login-themes .sx-login-panel .ant-input-affix-wrapper > input.ant-input { min-height: 38px; }
body.sx-login-themes .sx-login-panel .login-forget-password {
  display: flex; justify-content: space-between; width: 100%; margin: 6px 0 24px;
  color: #555; font-size: 14px;
}
body.sx-login-themes .sx-login-panel .login-forget-password a { color: #a67c00; }
body.sx-login-themes .sx-login-panel .login-forget-password a:hover { text-decoration: underline; }
body.sx-login-themes .sx-login-panel .ant-checkbox-checked .ant-checkbox-inner { background: #b8860b; border-color: #b8860b; }
body.sx-login-themes .sx-login-panel .login-button-box { margin-bottom: 0; }
body.sx-login-themes .sx-login-panel .ant-btn.login-button {
  width: 100%; height: 50px; border: none; border-radius: 6px; color: #fff;
  background: linear-gradient(135deg, #c4942a, #a67c00); box-shadow: 0 4px 14px rgb(184 134 11 / 35%);
  font-size: 16px; font-weight: 600; letter-spacing: 4px;
}
body.sx-login-themes .sx-login-panel .ant-btn.login-button:hover,
body.sx-login-themes .sx-login-panel .ant-btn.login-button:focus-visible {
  background: linear-gradient(135deg, #d3a33d, #b88b0e); box-shadow: 0 6px 20px rgb(184 134 11 / 45%);
}
body.sx-login-themes .sx-login-panel .login-signup-link { margin-top: 16px; }
body.sx-login-themes .sx-login-panel .login-signup-link:has(> div:last-child:empty),
body.sx-login-themes .sx-login-panel .ant-form > div:last-child:has(.ant-form-item-control-input-content:empty) { display: none !important; }
body.sx-login-themes .sx-login-panel .login-languages {
  display: none !important;
}
body.sx-login-themes .sx-login-panel .verification-code .ant-space-compact {
  display: flex; align-items: stretch; height: 54px; overflow: hidden;
  border: 1px solid #e2e2e2; border-radius: 6px; background: #fff;
}
body.sx-login-themes .sx-login-panel .verification-code .ant-space-compact:focus-within {
  border-color: #b8860b; box-shadow: 0 0 0 3px rgb(184 134 11 / 12%);
}
body.sx-login-themes .sx-login-panel .verification-code .verification-code-input {
  flex: 1; width: 0; min-width: 0; height: 100%; min-height: 0;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.sx-login-themes .sx-login-panel .verification-code .ant-space-compact > .ant-btn {
  flex: 0 0 auto; align-self: stretch; min-width: 106px; height: 100%;
  padding: 0 10px; border: 0; border-left: 1px solid #e2e2e2; border-radius: 0;
  color: #966c0b; background: #fbf8ef; box-shadow: none; font-size: 14px;
}
body.sx-login-themes .sx-login-panel .verification-code .ant-space-compact > .ant-btn:hover:not(:disabled) {
  color: #765407; background: #f5ebd2;
}
body.sx-login-themes .sx-login-panel .verification-code .ant-space-compact > .ant-btn:disabled {
  color: #999; background: #f7f7f7;
}
body.sx-login-themes .sx-other-login { width: 100%; margin: 24px auto 0; text-align: center; }
body.sx-login-themes .sx-other-login-divider {
  display: flex; align-items: center; gap: 16px; color: #999; font-size: 13px; white-space: nowrap;
}
body.sx-login-themes .sx-other-login-divider::before,
body.sx-login-themes .sx-other-login-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e5e5;
}
body.sx-login-themes .sx-sms-option {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin: 20px auto 0; padding: 11px; border: 1px solid #ddd; border-radius: 6px;
  color: #555; background: #fff; font-size: 14px; cursor: pointer;
}
body.sx-login-themes .sx-sms-option:hover,
body.sx-login-themes .sx-sms-option:focus-visible { border-color: #b8860b; background: #fdfaf2; }
body.sx-login-themes .sx-sms-icon {
  position: relative; width: 16px; height: 20px; border: 1.7px solid currentColor; border-radius: 3px;
}
body.sx-login-themes .sx-sms-icon::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 2px; height: 2px;
  border-radius: 50%; background: currentColor; transform: translateX(-50%);
}
@media (max-width: 960px) {
  body.sx-login-themes .sx-login-panel { flex-direction: column; justify-content: center; gap: 32px; padding: 84px 20px 24px; }
  body.sx-login-themes .sx-login-visual { flex: 0 0 auto; align-self: auto; text-align: center; }
  body.sx-login-themes .sx-theme-brand { top: -116px; left: 50%; transform: translateX(-50%); }
  body.sx-login-themes .sx-theme-copy { margin-top: 0; }
  body.sx-login-themes .sx-theme-copy h1 { font-size: 28px; }
  body.sx-login-themes .sx-theme-copy p { font-size: 15px; }
  body.sx-login-themes .sx-login-panel > .login-form { flex: 0 0 auto; width: 100%; max-width: 440px; padding: 36px 28px 28px !important; }
  body.sx-login-themes .sx-login-panel .ant-input { font-size: 16px; }
}
@media (max-width: 480px) {
  body.sx-login-themes .sx-login-panel { justify-content: flex-start; padding-top: 116px; }
  body.sx-login-themes .sx-theme-brand { top: -96px; }
  body.sx-login-themes .sx-theme-copy h1 { font-size: 24px; }
  body.sx-login-themes .sx-login-panel > .login-form { padding-bottom: 43px !important; }
  body.sx-login-themes .sx-login-form-header h2 { font-size: 24px; }
  body.sx-login-themes .sx-login-panel .verification-code .ant-space-compact > .ant-btn { min-width: 92px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.sx-login-themes .sx-login-panel .ant-btn.login-button { transition: none !important; }
}
