/**
 * 登录/注册页 - 弹出窗口效果，铺满页面，与 login_page 设计稿一致
 * 使用 vw 响应式，左图右表布局，图标使用 SVG
 */
body.login-page-body,
body.register-page-body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', 'Open Sans', PingFang SC, Microsoft YaHei, sans-serif;
  background-color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

/* 弹出层：铺满页面 */
.login-popup-overlay,
.register-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: #fff;
  display: flex;
}

.page-login,
.page-register {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex: 1;
}

/* 左侧背景图 */
.page-login .panel-left,
.page-register .panel-left {
  width: 50vw;
  min-height: 100vh;
  position: absolute;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-login .panel-left {
  background-image: url(../login/img/d3e5dd9cd83c4e50abe37771f57f4494_mergeImage.png);
}
.page-register .panel-left {
  background-image: url(../login/img/874912f0f57441998861e6f15001d889_mergeImage.png);
}

/* 右侧表单区 */
.page-login .panel-right,
.page-register .panel-right {
  margin-left: 50vw;
  width: 50vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 0 0 40px;
  box-sizing: border-box;
  position: relative;
}

/* 关闭按钮 - SVG 图标，右上角点击关闭弹出窗口 */
.login-close,
.register-close {
  position: absolute;
  top: 2.08vw;
  right: 2.08vw;
  width: 2.5vw;
  height: 2.5vw;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
}
.login-close img,
.register-close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-close:hover img,
.register-close:hover img {
  opacity: 0.7;
}

/* Logo（登录页在右侧区顶部） */
.login-logo,
.register-logo {
  width: 148px;
  height: 48px;
  flex-shrink: 0;
}
.login-logo img,
.register-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 标题 */
.page-login .form-title,
.page-register .form-title {
  color: #2a2a2a;
  font-size: 48px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  line-height: 56px;
  margin: 137px 0 0 200px;
  white-space: nowrap;
}

/* 新用户/已有账号 提示行 */
.login-signup-row,
.register-login-row {
  display: flex;
    align-items: flex-start;
    max-width: 480px;
    margin: 24px 0 0 200px;
    gap: 8px;
}
.login-signup-row .text-prompt,
.register-login-row .text-prompt {
  color: #2a2a2a;
    font-size: 16px;
    font-family: Lato, sans-serif;
    font-weight: 300;
    line-height: 24px;
}
.login-signup-row .link,
.register-login-row .link {
  color: #6f0b65;
  font-size: 16px;
  font-family: Lato, sans-serif;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  line-height: 24px;
}
.login-signup-row .link:hover,
.register-login-row .link:hover {
  text-decoration: underline;
}
.login_form {
  margin: 0 0 0 200px;
}
/* 表单项标签 */
.form-group label,
.form-label {
  display: block;
  color: #2a2a2a;
  font-size: 16px;
  font-family: Lato, sans-serif;
  font-weight: 300;
  line-height: 20px;
  margin-top: 24px;
}
.form-group:first-of-type label { margin-top: 24px; }

/* 输入框 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 25vw;
  max-width: 480px;
  height: 2.5vw;
  min-height: 40px;
  margin-top: 0.41vw;
  padding: 0 16px;
  box-sizing: border-box;
  background-color: #f8f7f7;
  border: none;
  color: #2a2a2a;
  font-size: 18px;
  font-family: Lato, sans-serif;
  outline: none;
  line-height: 24px;
}
.form-group.has-error input[type="text"],
.form-group.has-error input[type="email"],
.form-group.has-error input[type="password"],
.form-group.has-error .password-wrap {
  border: 1px solid #c63c3c;
  background-color: #fff5f5;
}
.form-group.has-error .password-wrap {
  padding-right: 0.62vw;
}
.field-error-text {
  margin-top: 0.31vw;
  color: #c63c3c;
  font-size: 0.73vw;
  font-family: Lato, sans-serif;
}

/* 注册：邮箱验证码 6 位输入 */
.reg-code-digits {
  display: flex;
  gap: 10px;
  margin: 32px 0 0 200px;
}
.reg-code-input {
  width: 60px !important;
  height: 72px !important;
  border-radius: 0;
  border: 1px solid #c7c7c7 !important;
  background: #fff !important;
  text-align: center;
  font-size: 40px !important;
  font-family: Lato-Black, Lato, sans-serif !important;
  line-height: 72px;
}
.reg-code-input:focus {
  outline: none;
  border-color: #6f0b65;
  box-shadow: 0 0 0 2px rgba(111, 11, 101, 0.2);
}
.form-group input::placeholder {
  color: #999;
}

/* 密码框带眼睛图标 */
.password-wrap {
  width: 25vw;
  max-width: 480px;
  height: 2.5vw;
  min-height: 40px;
  margin-top: 0.41vw;
  background-color: #f8f7f7;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.password-wrap input {
  flex: 1;
  height: 100%;
  padding: 0 0.62vw;
  border: none;
  background: transparent;
  color: #2a2a2a;
  font-size: 0.93vw;
  font-family: Lato, sans-serif;
  outline: none;
}
/* 密码框眼睛图标 - SVG：闭眼(隐藏密码) / 睁眼(显示密码) 切换 */
.password-wrap .eye-toggle {
  width: 1.5vw;
  height: 1.5vw;
  min-width: 24px;
  min-height: 24px;
  margin-right: 0.83vw;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-wrap .eye-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.password-wrap .eye-icon-eye,
.password-wrap .eye-icon-eye-close {
  display: none;
}
.password-wrap .eye-icon-eye.show,
.password-wrap .eye-icon-eye-close.show {
  display: block;
}

/* Forgot password 链接 */
.forgot-link {
  line-height: 24px;
    display: block;
    width: fit-content;
    color: #2a2a2a;
    font-size: 16px;
    font-family: Lato, sans-serif;
    font-weight: 300;
    text-decoration: none;
    margin: 24px 0 0 0;
}
.forgot-link:hover {
  color: #6f0b65;
  text-decoration: underline;
}

/* 主按钮 Log In / Submit */
.btn-primary-login {
  width: 25vw;
  max-width: 480px;
  height: 2.5vw;
  min-height: 48px;
  margin-top: 24px;
  background-color: #6f0b65;
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 24px;
  font-family: Lato, sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.btn-primary-login:hover {
  background-color: #5a0952;
}
.btn-primary-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 分割线 or */
.divider-row {
  width: 25vw;
  max-width: 480px;
  display: flex;
  align-items: center;
  margin: 24px 0 0 200px;
}
.divider-row .line {
  flex: 1;
  height: 1px;
  background: #C7C7C7;
}
.divider-row .text {
  color: #2a2a2a;
    font-size: 18px;
    padding: 0 17px;
    line-height: 22px;
}

/* 第三方登录按钮 */
.social-btn {
  width: 25vw;
  max-width: 480px;
  height: 2.92vw;
  min-height: 56px;
  margin: 24px 0 0 200px;
    background-color: #fff;
  border: 1px solid #c7c7c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.social-btn:hover {
  border-color: #6f0b65;
}
.social-btn .icon {
  width: 1.67vw;
  height: 1.67vw;
  min-width: 26px;
  min-height: 26px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.social-btn .icon-google {
  background-image: url(../login/img/SketchPng8e240e6bd64344afe2d72f6ceaa4906ae10eeb597a20ccc9e97d6f7eb18d915c.png);
}
.social-btn .icon-facebook {
  background-image: url(../login/img/SketchPngfed762b0c9d9967d8c7b1905b2bb17f7861588c6a05e12e6da3abfdeb739566e.png);
}
.social-btn span {
  color: #2a2a2a;
  font-size: 16px;
  font-family: Lato, sans-serif;
  line-height: 24px;
}

/* 注册页：隐私政策勾选（SVG 勾选框切换） */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  width: 25vw;
  max-width: 480px;
  margin-top: 1.25vw;
}
.checkbox-row .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5vw;
  cursor: pointer;
  color: #2a2a2a;
  font-size: 0.83vw;
  font-family: Lato, sans-serif;
  font-weight: 300;
  line-height: 1.25vw;
  margin: 0;
}
.checkbox-row .checkbox-svg-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.checkbox-row .checkbox-input-hidden {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.checkbox-row .checkbox-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.checkbox-row .checkbox-svg .icon-unchecked,
.checkbox-row .checkbox-svg .icon-checked {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.checkbox-row .checkbox-svg .icon-checked {
  display: none;
}
.checkbox-row .checkbox-svg .icon-unchecked {
  display: block;
}
.checkbox-row .checkbox-label.is-checked .checkbox-svg .icon-unchecked,
.checkbox-row .checkbox-label:has(.checkbox-input-hidden:checked) .checkbox-svg .icon-unchecked {
  display: none;
}
.checkbox-row .checkbox-label.is-checked .checkbox-svg .icon-checked,
.checkbox-row .checkbox-label:has(.checkbox-input-hidden:checked) .checkbox-svg .icon-checked {
  display: block;
}
.checkbox-row .checkbox-text {
  flex: 1;
}
.checkbox-row.has-error .checkbox-text {
  color: #c63c3c;
}
.checkbox-row a {
  color: #6f0b65;
  text-decoration: none;
}
.checkbox-row a:hover {
  text-decoration: underline;
}

/* 注册邮箱验证码行 */
.vercode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.41vw;
}
.vercode-row input {
  flex: 1;
  width: auto;
  min-width: 0;
  margin-top: 0;
}
.btn-send-vercode {
  flex-shrink: 0;
  padding: 0 1vw;
  min-height: 2.5vw;
  height: 2.5vw;
  min-width: 100px;
  background: #6f0b65;
  color: #fff;
  border: none;
  font-size: 0.83vw;
  font-family: Lato, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-send-vercode:hover:not(:disabled) {
  background: #5a0952;
}
.btn-send-vercode:disabled {
  background: #999;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .vercode-row { margin-top: 8px; }
  .btn-send-vercode { min-height: 40px; height: 40px; font-size: 14px; }
}

/* 通知条 */
#notification,
.login-overlay-notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10001;
  max-width: 400px;
  animation: slideIn 0.3s ease;
  color: #fff;
}
#notification.show-error,
.login-overlay-notification.show-error { background: #f44336; }
#notification.show-success,
.login-overlay-notification.show-success { background: #4caf50; }

/* 弹窗内多面板切换（登录/注册/找回密码） */
.login-overlay-panel {
  display: none;
  width: 100%;
}
.login-overlay-panel.active {
  display: block;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 小屏适配：堆叠布局 */
@media (max-width: 900px) {
  .page-login .panel-left,
  .page-register .panel-left {
    width: 100%;
    min-height: 30vh;
    position: relative;
  }
  .page-login .panel-right,
  .page-register .panel-right {
    margin-left: 0;
    width: 100%;
    padding: 5vw 6vw 6vw;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"],
  .password-wrap,
  .btn-primary-login,
  .divider-row,
  .social-btn,
  .login-signup-row,
  .register-login-row,
  .checkbox-row {
    width: 100%;
    max-width: 100%;
  }
  .page-login .form-title,
  .page-register .form-title { font-size: 28px; }
  .form-group label,
  .form-label,
  .login-signup-row .text-prompt,
  .login-signup-row .link,
  .register-login-row .text-prompt,
  .register-login-row .link,
  .forgot-link,
  .form-group input,
  .password-wrap input,
  .checkbox-row label { font-size: 14px; }
  .login-close,
  .register-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
