html,
body {
  height: 100%;
}

.login_page_new_ui {
  display: flex;
  font-weight: 400;
  height: 100%;
  font-family: 'Hellix', sans-serif;
  background: linear-gradient(135deg, #0a1428 0%, #0c1a33 50%, #0a1428 100%);
  color: #e0f2ff;
}

.login_page_new_ui .left {
  flex: 1;
  background: linear-gradient(135deg, rgba(0, 50, 100, 0.05) 0%, rgba(0, 30, 60, 0.05) 50%, rgba(0, 20, 40, 0.05) 100%);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* AI科技风动态背景 - 二进制数字流动 */
.login_page_new_ui .left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* 二进制数字流动效果 - 降低透明度 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(0, 150, 255, 0.03) 19px,
      rgba(0, 150, 255, 0.03) 21px
    ),
    /* 左侧二进制数字流 - 降低透明度 */
    radial-gradient(circle at 20% 50%, rgba(0, 150, 255, 0.05) 0%, transparent 50%),
    /* 右侧二进制数字流 - 降低透明度 */
    radial-gradient(circle at 80% 30%, rgba(0, 100, 200, 0.04) 0%, transparent 50%),
    /* 顶部光效 - 降低透明度 */
    linear-gradient(180deg, rgba(0, 100, 200, 0.08) 0%, transparent 30%);
  animation: binaryFlow 20s infinite linear, backgroundPulse 15s infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes binaryFlow {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 -40px, 50px 50px, -50px -30px, 0 0; }
}

@keyframes backgroundPulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

.login_page_new_ui .left:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 179px;
  height: 239px;
  background: url('../images/login-bg.svg') no-repeat center center;
  background-size: contain;
}

.login_page_new_ui .ls-logo {
  width: 414px;
  height: 64px;
  color: var(--color-neutral-content);
}

.login_page_new_ui .hs-logo {
  width: 152px;
  height: 22px;
  color: var(--color-neutral-content);
}

.login_page_new_ui .left h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0em;
  text-align: center;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 195, 255, 0.8), 0 0 30px rgba(0, 150, 255, 0.6), 0 0 45px rgba(0, 100, 200, 0.4);
  position: relative;
  z-index: 10;
}

.login_page_new_ui .left h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  margin: 8px 0 0 0;
  color: #e0f7ff;
  text-shadow: 0 0 10px rgba(0, 195, 255, 0.6), 0 0 20px rgba(0, 150, 255, 0.4);
  position: relative;
  z-index: 10;
}

.login_page_new_ui .left .by {
  position: absolute;
  bottom: 60px;
  left: 60px;
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.login_page_new_ui .left img {
  color: var(--color-neutral-content);
}

.login_page_new_ui .tips {
  max-width: 520px;
  border-radius: 12px;
  border: 1px solid rgba(0, 195, 255, 0.3);
  background: rgba(10, 30, 50, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 150, 255, 0.3), 0 0 30px rgba(0, 100, 200, 0.2);
  padding: 24px;
  margin: 18vh 60px 0 60px;
  position: relative;
  z-index: 3;
}

.login_page_new_ui .tips:after {
  content: '';
  width: 115px;
  height: 83px;
  position: absolute;
  bottom: -72px;
  left: 16px;
  fill: var(--color-neutral-border);
  background: url('../images/heidi-tip.svg') no-repeat center center;
}

.login_page_new_ui .tips .title {
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15px;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 195, 255, 0.7);
}

.login_page_new_ui .tips .description {
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.25px;
  color: #d0f0ff;
  text-shadow: 0 0 8px rgba(0, 195, 255, 0.4);
}

.login_page_new_ui .tips .description a {
  color: #00d9ff;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.login_page_new_ui .tips .description a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d9ff, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.login_page_new_ui .tips .description a:hover {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
  transform: translateY(-1px);
}

.login_page_new_ui .tips .description a:hover::after {
  transform: scaleX(1);
}

.login_page_new_ui .tips .description a:hover {
  text-decoration: none;
}

.login_page_new_ui .right {
  display: flex;
  flex-direction: column;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.login_page_new_ui .toggle {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: stretch;
}

.login_page_new_ui .toggle>* {
  flex-grow: 1;
  text-align: center;
  padding: .75rem 0;
  font-size: 1rem;
  color: var(--color-neutral-border);
  border-top: 2px solid transparent;
  transition: all 150ms ease-out;
}

.login_page_new_ui .toggle>*.active {
  border-color: var(--color-primary-surface);
  color: var(--color-primary-content);
}

.login_page_new_ui .toggle>*:hover {
  color: var(--color-primary-surface-hover);
  border-color: var(--color-primary-surface-hover);
}

.form-wrapper {
  position: relative;
  background: var(--color-neutral-surface);
  margin-top: 1.5rem;
  border: 1px solid var(--color-neutral-border);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 12px rgba(23, 20, 13, 0.16);
  width: 22rem;
}

.form-wrapper h2 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  width: 100;
  text-align: center;
}

.login_page_new_ui form {
  display: grid;
  flex-direction: column;
  grid-auto-flow: rows;
  grid-gap: 1rem;
}

.login_page_new_ui form>* {
  position: relative;
}

.login_page_new_ui form p {
  margin: 0;
}

.login_page_new_ui form .error {
  color: var(--color-negative-content);
  font-size: .875rem;
}

.login_page_new_ui form input,
.login_page_new_ui form button,
.login_page_new_ui form select {
  width: 100%;
  font-family: 'Hellix', sans-serif;
}

.login_page_new_ui form input {
  padding: 10px 15px;
  border-radius: var(--corner-radius-smaller);
  box-sizing: border-box;
  border: 1px solid var(--color-neutral-border);
}

.login_page_new_ui form button {
  border-radius: 4rem;
  color: var(--color-neutral-inverted-content);
  padding: 10px 0;
  border: none;
  background: var(--color-neutral-inverted-surface);
  cursor: pointer;
}

.login_page_new_ui form button:hover {
    color: var(--color-neutral-inverted-content);
    background: var(--color-neutral-inverted-surface-hover);
}

.login_page_new_ui .field_errors {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: .875rem;
  line-height: 16px;
  color: var(--color-negative-content);
}

.login_page_new_ui .field_errors li {
  margin-top: .25rem;
}

.auto-generated form {
  width: 100%;
}

.auto-generated form label {
  display: block;
}

.auto-generated form input {
  height: 40px;
  min-height: 40px;
  background: var(--color-neutral-surface);
  font-size: 1rem;
  line-height: 22px;
  border: 1px solid var(--color-neutral-border);
  box-sizing: border-box;
  border-radius: 5px;
  padding: 0 16px;
  transition: box-shadow 80ms ease;
}

.auto-generated p:empty {
  display: none;
}

.auto-generated form ul li:not(:last-child) {
  margin-bottom: 0.5em;
}

.auto-generated form ul {
  margin-bottom: 0;
}

.input-wrapper label {
  font-size: .825rem !important;
  margin-bottom: .2rem;
  font-family: 'Hellix', sans-serif !important;
  font-weight: 500;
}

label {
  font-family: 'Hellix', sans-serif !important;
  font-weight: 500;
  font-size: .825rem !important;
  margin-bottom: .2rem;
  display: block;
}

.login-button {
  font-size: var(--font-size-body-medium);
}

.form-group {
  display: block;
  margin-bottom: .5rem;
}

.form-group input {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  display: none;
  cursor: pointer;
}

.form-group label {
  position: relative;
  cursor: pointer;
  font-size: .875rem;
}

.form-group label a {
  font-family: 'Hellix', sans-serif !important;
  font-weight: 500;
}

.form-group label:before {
  content: '';
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid #CAC5B8;
  padding: 10px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
  top: -1px;
}

.form-group input:checked+label:before {
  background: var(--primary_link);
  border: 1px solid var(--primary_link);
}

.form-group input:checked+label:after {
  content: '';
  display: block;
  position: absolute;
  top: 2px;
  left: 8px;
  width: 5px;
  height: 10px;
  border: solid var(--color-primary-surface-content);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.text-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .875rem;
}

.text-wrapper a {
  color: var(--primary_link);
  text-decoration: underline;
  font-weight: 500;
}

.text-wrapper a:hover {
  text-decoration: none;
}
