/* 登录 / 注册共用：布局、卡片、Layui 表单基础 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #0a1628;
  --royal: #1a6cff;
  --royal-hover: #0d56d6;
  --text: #2c2c2c;
  --text-sub: #8c8c8c;
  --muted: #9ca3af;
  --border: #e2e6ed;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
  sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background-color: #dde9fc;
  background-image: url("/statics/image/background_pre_1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
}

.auth-card-split {
  display: flex;
  min-height: 700px;
  height: 700px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  box-shadow:
          0 2px 4px rgba(15, 23, 42, 0.06),
          0 16px 40px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.auth-card-aside {
  position: relative;
  flex: 0 0 44%;
  min-width: 0;
  background-color: #050a14;
  background-image: url("/statics/image/main_pre_1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  padding: 1.75rem 1.25rem 1.75rem 1.75rem;
  color: #fff;
}

.auth-card-aside-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.auth-card-brand-mark {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.98;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.auth-card-main {
  flex: 1;
  padding: 2.25rem 2.5rem 2rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.field-password-wrap {
  position: relative;
}

.field-password-wrap .layui-input {
  padding-right: 44px;
}

.field-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-toggle-pwd:hover {
  color: var(--royal);
}

.field-toggle-pwd svg {
  width: 20px;
  height: 20px;
}

.form-forgot {
  text-align: right;
  margin: -0.25rem 0 1rem;
}

.form-forgot a {
  color: var(--royal);
  font-size: 0.8125rem;
  text-decoration: none;
}

.form-forgot a:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.auth-footer a {
  color: var(--royal);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #a8a8a8;
}

.auth-cross-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

.auth-cross-link a {
  color: var(--royal);
  text-decoration: none;
}

.auth-cross-link a:hover {
  text-decoration: underline;
}

.auth-card-main .layui-input-block.auth-layui-input-block {
  margin-left: 0 !important;
}

.auth-card-main .layui-form-item {
  margin-bottom: 1rem;
}

.auth-card-main .layui-input {
  height: 46px;
  line-height: 46px;
  border-radius: 4px;
}

.auth-card-main .field-password-wrap .layui-input {
  padding-right: 44px;
}

.auth-layui-btn-primary {
  background-color: var(--royal) !important;
  border-color: var(--royal) !important;
}

.auth-layui-btn-primary:hover {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .auth-card-split {
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  .auth-card-aside {
    flex: none;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    min-height: 200px;
    padding: 1.25rem 1.25rem 2.5rem;
  }

  .auth-card-aside-inner {
    min-height: 0;
  }

  .auth-card-main {
    padding: 1.75rem 1.5rem 1.5rem;
  }
}


/* 注册页 */

.field-verify-combo {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  min-height: 46px;
  transition: border-color 0.2s;
}

.field-verify-combo:focus-within {
  border-color: var(--royal);
}

.field-verify-combo-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
}

.field-verify-combo-input::placeholder {
  color: #b6bcc6;
}

.field-verify-combo-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.field-verify-combo-action {
  flex-shrink: 0;
  padding: 0 14px;
  border: none;
  background: #fff;
  color: var(--muted);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}

.field-verify-combo-action:hover:not(:disabled) {
  color: var(--royal);
}

.field-verify-combo-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-card-main .field-verify-combo .layui-input {
  border: none;
  box-shadow: none;
  height: 44px;
  line-height: 44px;
}

.field-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.field-captcha-row .field-captcha-input {
  flex: 1;
  min-width: 0;
}

.register-captcha-img {
  width: 160px;
  min-width: 160px;
  height: 46px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid var(--border);
  object-fit: cover;
  align-self: center;
}

.register-agree-row {
  margin-bottom: 1rem !important;
}

.register-agree-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-sub);
}

.register-agree-label input[type="checkbox"] {
  /* margin-top: 3px; */
  flex-shrink: 0;
}
.register-agree-text{
  margin-top: 8px;
}
.register-agree-text a {
  color: var(--royal);
  text-decoration: none;
}

.register-agree-text a:hover {
  text-decoration: underline;
}
