@charset "utf-8";

/* ===== Reset ===== */
html,
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
input,
textarea,
th,
td {
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset,
img {
  border: 0;
}
ol,
ul {
  list-style: none;
}
a {
  text-decoration: none;
  outline: none;
}
a:active,
a:hover,
a:focus {
  outline: none;
}
input,
button {
  outline: none;
}
html,
body {
  height: 100%;
  font-family: '\5FAE\8F6F\96C5\9ED1', 'Microsoft Yahei', sans-serif;
}

/* ===== 整体布局 ===== */
.login-page {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 100vh;
  background: #f5f7f8;
  overflow: hidden;
}

/* ===== 左侧品牌区 ===== */
.login-left {
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.login-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(10%, -50%);
  width: 12vw;
  height: 12vw;
  border-radius: 50%;
  background-color: #f5f9ff;
  border: 1px solid #f5f5f5;
  pointer-events: none;
  z-index: 0;
}

.login-left .brand-header {
  margin-bottom: 36px;
  z-index: 1;
}

.login-left .brand-logo {
  height: 42px;
  z-index: 1;
  margin-top: 60px;
}

.login-left .brand-desc {
  font-size: 20px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 500;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  z-index: 1;
}

.login-left .brand-illustration {
  z-index: 1;
  position: relative;
}

.login-left .brand-illustration .circle {
  position: absolute;
  border-radius: 50%;
  background-color: #f5f9ff;
  border: 1px solid #f5f5f5;
  z-index: 2;
}

.login-left .brand-illustration .circle1 {
  width: 2vw;
  height: 2vw;
  top: 24%;
  left: 10%;
}

.login-left .brand-illustration .circle2 {
  width: 3vw;
  height: 3vw;
  top: 24%;
  right: 10%;
}

.login-left .brand-illustration .circle3 {
  width: 1vw;
  height: 1vw;
  bottom: 16%;
  left: 22%;
}

.login-left .brand-illustration .circle4 {
  width: 1vw;
  height: 1vw;
  bottom: 5%;
  left: 48%;
}

.login-left .brand-illustration .circle5 {
  width: 0.5vw;
  height: 0.5vw;
  bottom: 22%;
  right: 5%;
}

.login-left .brand-illustration img {
  max-width: 100%;
  max-height: calc(100vh - 330px);
  object-fit: contain;
  z-index: 1;
}

/* ===== 右侧表单区 ===== */
.login-right-wrapper {
  height: 100vh;
  overflow-y: auto;
  background: #f5f7f8;
}

.login-right {
  padding: 48px;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #0f0e0e;
  position: relative;
  box-sizing: border-box;
}

.login-right::before,
.login-right::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 20vw;
  height: 20vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, #b4e1fb 0%, rgba(220, 241, 255, 0.4464) 100%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.login-right::after {
  top: initial;
  bottom: 0;
  transform: translate(20%, 20%);
  width: 16vw;
  height: 16vw;
}

.login-right-inner {
  width: 480px;
  padding: 48px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

/* ===== Logo区域 ===== */
.form-logo {
  text-align: center;
  margin-bottom: 40px;
}

.form-logo img {
  height: 42px;
}

.form-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-logo-icon {
  width: 48px;
  height: 48px;
  margin-right: 8px;
}

.form-logo-name {
  font-size: 24px;
  font-weight: bold;
  color: #0f0e0e;
}

.back-btn {
  display: flex;
  color: #3287ff;
}

/* ===== 平台切换Tab ===== */
.platform-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.platform-tabs .tab-item {
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  position: relative;
  flex: 1;
  text-align: center;
  border-bottom-color: #f5f5f5;
}

.platform-tabs .tab-item:hover {
  color: #3287ff;
}

.platform-tabs .tab-item.active {
  color: #3287ff;
  border-bottom-color: #3287ff;
  font-weight: 500;
}

/* ===== 表单面板 ===== */
.panel {
  display: none;
  flex: 1;
}

.panel.active {
  display: block;
}

/* ===== 子Tab（登录/注册/忘记密码） ===== */
.sub-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  gap: 40px;
}

.sub-tabs .sub-tab {
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.sub-tabs .sub-tab:hover {
  color: #3287ff;
}

.sub-tabs .sub-tab.active {
  color: #3287ff;
  border-bottom-color: #3287ff;
  font-weight: 500;
}

/* ===== 表单面板（子级） ===== */
.form-panel {
  display: none;
  position: relative;
}

.form-panel.active {
  display: block;
}

/* ===== 表单标题 ===== */
.form-title {
  font-size: 24px;
  font-weight: bold;
  color: #0f0e0e;
  margin-bottom: 12px;
}

.form-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}

/* 找回密码表单标题居左 */
#form-forget .form-title,
#form-forget .form-subtitle {
  text-align: left;
}

/* ===== 表单字段 ===== */
.field-wrap {
  margin-bottom: 24px;
}

.field-label {
  font-size: 14px;
  color: #0f0e0e;
  margin-bottom: 8px;
  font-weight: 500;
}

.field-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  height: 40px;
  padding: 0 16px;
  transition: border-color 0.3s;
}

.field-box:focus-within {
  border-color: #3287ff;
}

.field-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: #0f0e0e;
  height: 100%;
}
.field-box:has(input[disabled="disabled"]) {
  background-color: #FAFAFA;
}

.field-box input::placeholder {
  color: #bfbfbf;
}

.field-box input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* 密码显示/隐藏切换 */
.password-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s;
}

.password-toggle:hover {
  opacity: 0.7;
}

.password-toggle.visible {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>');
}

/* 错误提示 */
.error-tip {
  display: none;
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
  position: relative;
}

.error-tip.form-item-error {
  display: block;
  position: absolute;
}

/* ===== 验证码区域 ===== */
.captcha-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.captcha-wrap .field-wrap {
  flex: 1;
  margin-bottom: 0;
}

.captcha-btn {
  flex-shrink: 0;
  width: 120px;
  height: 40px;
  background: #3287ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: '\5FAE\8F6F\96C5\9ED1', 'Microsoft Yahei', sans-serif;
}

.captcha-btn:hover {
  background: #1a6edb;
}

.captcha-btn.no-click {
  background: #d9d9d9;
  cursor: not-allowed;
}

.img-code-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 40px;
}

.img-code {
  width: 100%;
  height: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  object-fit: cover;
}

.captcha-outer {
  margin-bottom: 24px;
}

/* ===== 复选框和协议 ===== */
.agreement-wrap {
  margin: 24px 0;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: flex-start;
}

.agreement-wrap input[type='checkbox'] {
  margin-right: 6px;
  margin-top: 2px;
  flex-shrink: 0;
}

.agreement-wrap a {
  color: #3287ff;
}

.agreement-wrap a:hover {
  text-decoration: underline;
}

/* ===== 按钮 ===== */
.btn-submit {
  display: block;
  width: 100%;
  height: 48px;
  background: #3287ff;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.3s;
  font-family: '\5FAE\8F6F\96C5\9ED1', 'Microsoft Yahei', sans-serif;
  font-weight: 500;
}

.btn-submit:hover {
  background: #1a6edb;
}

.btn-submit.no-click,
.btn-submit.disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

.btn-submit.no-click:hover,
.btn-submit.disabled:hover {
  background: #d9d9d9;
}

/* ===== 表单辅助链接 ===== */
.form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
}

.form-links a {
  color: #3287ff;
  cursor: pointer;
}

.form-links a:hover {
  text-decoration: none;
}

.form-links-center {
  justify-content: center;
  gap: 40px;
}

/* ===== 忘记密码成功区 ===== */
.forget-success {
  display: none;
  padding: 20px 0;
}

.forget-success .success-title {
  font-size: 18px;
  color: #0f0e0e;
  margin-bottom: 12px;
  font-weight: 500;
}

.forget-success .success-tip {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.forget-success .success-email {
  color: #3287ff;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 500;
}

.forget-success .mail-link {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 20px;
  border: 1px solid #3287ff;
  border-radius: 4px;
  color: #3287ff;
  font-size: 14px;
}

.forget-success .mail-link:hover {
  background: #3287ff;
  color: #fff;
}

.resend-wrap {
  margin-top: 24px;
  font-size: 13px;
  color: #999;
}

.resend-btn {
  color: #3287ff;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 13px;
  padding: 0;
  font-family: '\5FAE\8F6F\96C5\9ED1', 'Microsoft Yahei', sans-serif;
}

.resend-btn:hover {
  text-decoration: underline;
}

.resend-btn.no-click {
  color: #d9d9d9;
  cursor: not-allowed;
}

/* ===== 全局错误提示 ===== */
.form-error-msg {
  position: absolute;
  color: #ff4d4f;
  font-size: 12px;
  text-align: center;
  margin-top: 4px;
  min-height: 18px;
}

/* ===== DSP登录 ===== */
.dsp-title {
  font-size: 20px;
  color: #0f0e0e;
  margin-bottom: 28px;
  font-weight: bold;
}

/* ===== 邮箱验证页 ===== */
.email-check-content {
  padding: 8px 0;
}

.email-check-title {
  font-size: 20px;
  font-weight: bold;
  color: #0f0e0e;
  margin-bottom: 20px;
}

.email-tip {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.email-info {
  color: #3287ff;
  text-decoration: none;
}

.check-email-btn {
  display: inline-block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: #3287ff;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 24px;
}

.check-email-btn:hover {
  background: #1a6fe0;
  color: #fff;
  text-decoration: none;
}

.resend-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.resend-option {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

#djs_num,
#forget_djs_num {
  margin: 0 8px;
}

.resend-option::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #666;
}

.resend-email {
  color: #3287ff;
  text-decoration: none;
}

.resend-email:hover {
  text-decoration: none;
}

.send-email-tip em {
  font-style: normal;
  color: #3287ff;
}

/* ===== 邮箱验证页 Tab 样式 ===== */
.email-check-tabs .tab-item {
  cursor: default;
}

/* ===== 自定义成功弹窗 ===== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
  opacity: 1;
}

.custom-modal {
  background: white;
  border-radius: 12px;
  padding: 40px 120px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-modal-overlay.show .custom-modal {
  transform: scale(1);
}

.custom-modal-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto 20px;
  background: #52c41a;
  color: white;
  font-size: 36px;
  border-radius: 50%;
}

.custom-modal-message {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
  font-weight: 500;
}

.custom-modal-btn {
  background: #3287FF;
  color: white;
  border: none;
  padding: 10px 40px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-modal-btn:hover {
  background: #1a6edb;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right-inner {
    width: 100%;
  }
}
