.auth-page {
  --auth-primary: #3B83F8;
  --auth-primary-light: #599FFD;
  --auth-text: #273142;
  --auth-muted: #788395;
  --auth-border: #DDE4ED;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--auth-text);
  background: url('/statics/imgs/auth-page-bg.png') no-repeat center;
  background-size: 100% 100%;
}

.auth-container {
  display: flex !important;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  width: min(1200px, calc(100% - 48px));
  min-height: 0;
  margin: 0 auto;
  padding: 102px 0 32px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 480px);
  width: min(780px, 100%);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(205, 217, 233, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(42, 58, 82, 0.13);
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #3B83F8;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-visual::before,
.auth-visual::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.auth-visual::before {
  top: 0;
  right: 0;
  width: 232px;
  height: 168px;
  background: rgba(255, 255, 255, 0.055);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 0);
  filter: drop-shadow(-1px 1px 0 rgba(255, 255, 255, 0.1));
}

.auth-visual::after {
  bottom: 0;
  left: 0;
  width: 202px;
  height: 154px;
  background: rgba(25, 91, 202, 0.14);
  clip-path: polygon(0 32%, 100% 100%, 0 100%);
  filter: drop-shadow(1px -1px 0 rgba(255, 255, 255, 0.07));
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 28px 24px;
}

.auth-visual-copy,
.auth-visual-points {
  width: 238px;
}

.auth-visual-copy {
  transform: translateY(-18px);
}

.auth-visual-title {
  margin: 0;
  color: #FFFFFF;
  letter-spacing: 0;
}

.auth-visual-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 28px;
}

.auth-stack {
  position: relative;
  width: 226px;
  height: 210px;
}

.auth-visual-points {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-visual-points span {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 22px;
}

.auth-visual-points i {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  background: #78E2C4;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(120, 226, 196, 0.12);
}

.auth-stack-layer,
.auth-stack-panel {
  position: absolute;
  width: 184px;
  height: 132px;
  border-radius: 8px;
}

.auth-stack-layer-back {
  top: 20px;
  left: 28px;
  background: #B9D2F8;
  transform: rotate(4deg);
}

.auth-stack-layer-middle {
  top: 37px;
  left: 10px;
  background: #DCE8FA;
  border: 1px solid #C8D9F1;
  transform: rotate(-3deg);
}

.auth-stack-panel {
  top: 28px;
  left: 21px;
  z-index: 2;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid #D6DFEB;
  box-shadow: 0 16px 30px rgba(52, 75, 109, 0.16);
}

.auth-stack-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-stack-heading .iconfont {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #FFFFFF;
  font-size: 18px;
  background: #3B83F8;
  border-radius: 8px;
}

.auth-stack-heading span {
  width: 92px;
  height: 8px;
  background: #DDE6F2;
  border-radius: 4px;
}

.auth-stack-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.auth-stack-row i {
  width: 8px;
  height: 8px;
  background: #63B99D;
  border-radius: 2px;
}

.auth-stack-row span {
  height: 6px;
  background: #E4EAF2;
  border-radius: 3px;
}

.auth-stack-row:nth-child(2) span {
  width: 112px;
}

.auth-stack-row:nth-child(3) span {
  width: 88px;
}

.auth-stack-row:nth-child(4) span {
  width: 102px;
}

.auth-stack-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #3B83F8;
  background: #FFFFFF;
  border: 1px solid #CAD8EA;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(52, 75, 109, 0.15);
}

.auth-stack-badge .iconfont {
  font-size: 21px;
}

.auth-stack-badge-shield {
  top: 2px;
  right: 0;
}

.auth-stack-badge-signal {
  bottom: 0;
  left: 0;
}

.login-form-wrapper {
  width: 100%;
  padding: 34px 38px;
  background: #FFFFFF;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-form-wrapper .login-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #252E3D;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.login-form-wrapper .login-title::before {
  content: '';
  flex: 0 0 auto;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--auth-primary) 0%, var(--auth-primary-light) 100%);
  border-radius: 2px;
}

.login-form > div {
  margin-bottom: 18px;
}

.login-form > div:last-child {
  margin-bottom: 0;
}

.login-form > .flex-st {
  display: block;
}

.login-form > div > p {
  margin: 0 0 8px;
}

.login-form label {
  display: block;
  width: auto;
  color: #3C4658;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.login-form input:not([type='checkbox']) {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  color: var(--auth-text);
  font-size: 15px;
  line-height: 46px;
  background: #FBFCFE;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:not([type='checkbox'])::placeholder {
  color: #A5ADBB;
}

.login-form input:not([type='checkbox']):hover {
  border-color: #B9C8DE;
}

.login-form input:not([type='checkbox']):focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(59, 131, 248, 0.12);
}

.login-form .login-submit-btn {
  width: 100%;
  height: 48px;
  margin: 6px 0 0;
  padding: 0 20px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 0;
  background: linear-gradient(116deg, var(--auth-primary) 0%, var(--auth-primary-light) 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(59, 131, 248, 0.16);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form .login-submit-btn:hover {
  background: linear-gradient(116deg, #2F76EA 0%, #4F95F5 100%);
  box-shadow: 0 8px 18px rgba(59, 131, 248, 0.25);
  transform: translateY(-1px);
}

.login-form .login-submit-btn:active {
  box-shadow: 0 4px 10px rgba(59, 131, 248, 0.2);
  transform: translateY(0);
}

.login-form .auth-links,
.login-form .auth-switch {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 22px;
}

.login-form .auth-links {
  align-items: center;
}

.login-form .link {
  color: var(--auth-primary);
  transition: color 0.2s ease;
}

.login-form .link:hover {
  color: #206CE6;
}

.read-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 14px !important;
  color: #707A8E;
  font-size: 13px;
  line-height: 22px;
}

.read-agree input[type='checkbox'] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--auth-primary);
  transform-origin: center;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.read-agree input[type='checkbox']:active {
  transform: scale(0.84);
}

.read-agree input[type='checkbox']:checked {
  animation: auth-checkbox-bounce 0.32s ease-out;
  box-shadow: 0 0 0 3px rgba(59, 131, 248, 0.14);
}

.read-agree label {
  min-width: 0;
  color: #707A8E;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
}

.register-actions,
.forgot-actions {
  margin-bottom: 0 !important;
}

.register-actions .auth-switch {
  margin-top: 12px;
  text-align: left;
}

.auth-footer {
  flex: 0 0 auto;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 4px 16px 22px;
  color: #7F8A9B;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  letter-spacing: 0;
}

.auth-footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.auth-footer-record {
  color: inherit;
  white-space: nowrap;
}

.auth-footer a.auth-footer-record {
  transition: color 0.2s ease;
}

.auth-footer a.auth-footer-record:hover {
  color: var(--auth-primary);
}

.auth-footer-police {
  display: inline-flex;
  align-items: center;
}

.auth-footer-police img {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  object-fit: contain;
}

.auth-footer-copyright {
  margin: 5px 0 0;
  color: #929BA9;
}

@media screen and (min-width: 1200px) {
  .auth-shell {
    grid-template-columns: 340px minmax(0, 520px);
    width: min(860px, 100%);
  }

  .login-form-wrapper {
    padding-right: 58px;
    padding-left: 58px;
  }
}

@keyframes auth-checkbox-bounce {
  0% {
    transform: scale(0.82);
  }

  58% {
    transform: scale(1.14);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .read-agree input[type='checkbox'] {
    transition: none;
  }

  .read-agree input[type='checkbox']:checked {
    animation: none;
  }
}

@media screen and (max-width: 1199px) {
  .auth-page {
    background: #FFFFFF;
  }

  .auth-container,
  .auth-login .auth-container {
    display: block !important;
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 70px 0 0;
  }

  .login-form-wrapper {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    margin: 20px auto;
    padding: 10px;
    font-size: 14px;
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-shell {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-visual,
  .login-form > div > p > label {
    display: none;
  }

  .login-form-wrapper .login-title {
    width: 88%;
    margin: 48px 0;
    font-size: 32px;
  }

  .login-form-wrapper .login-title::before {
    width: 4px;
    height: 28px;
  }

  .login-form {
    width: 88%;
    font-size: 14px;
  }

  .login-form > div {
    margin-bottom: 0;
  }

  .login-form > div > p {
    margin: 0 0 15px;
  }

  .login-form input:not([type='checkbox']),
  .login-form .login-submit-btn {
    height: 42px;
    line-height: 40px;
  }

  .login-form .login-submit-btn {
    margin: 50px 0 10px;
    font-size: 16px;
    line-height: 42px;
  }

  .read-agree {
    align-items: flex-start;
    margin: 14px 0 0 !important;
  }

  .read-agree input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
  }

  .auth-footer {
    width: 100%;
    padding: 18px 28px 22px;
    border-top: 1px solid rgba(221, 228, 237, 0.72);
  }
}

@media screen and (max-width: 600px) {
  .auth-page {
    overflow-x: hidden;
  }

  .auth-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-footer-record {
    white-space: normal;
  }
}
