* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.pc-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
  background: #fde8d4 url("/static/pc/default/img/pc-auth-bg.svg") no-repeat center;
  background-size: cover;
  box-sizing: border-box;
}

.pc-auth-page-main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-top: 40px;
  box-sizing: border-box;
}

.pc-auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 236, 210, 0.55) 0%,
    rgba(255, 248, 235, 0.35) 45%,
    rgba(255, 230, 200, 0.5) 100%
  );
  pointer-events: none;
}

.pc-auth-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1280px;
  height: 660px;
  min-height: 660px;
  max-height: 660px;
  flex-shrink: 0;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 50px rgba(210, 120, 80, 0.18);
  overflow: hidden;
}

.pc-auth-brand {
  flex: 0 0 50%;
  min-width: 0;
  height: 100%;
  padding: 48px 44px 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.pc-auth-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
}

.pc-auth-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: contain;
  background: #f3524d;
  flex-shrink: 0;
}

.pc-auth-logo-fallback {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #f3524d;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pc-auth-site-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.pc-auth-site-name small {
  display: block;
  font-size: 12px;
  color: #f3524d;
  font-weight: 500;
  margin-top: 2px;
}

.pc-auth-welcome {
  font-size: 40px;
  font-weight: 700;
  color: #f3524d;
  line-height: 1.35;
  margin: 0 0 24px;
  letter-spacing: 1px;
}

.pc-auth-slogan {
  font-size: 18px;
  color: #222;
  margin: 0 0 28px;
  font-weight: 700;
}

.pc-auth-features {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.pc-auth-form-wrap {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 28px 44px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

/* 仅右侧白卡片随登录/注册变化，外层 .pc-auth-card 尺寸不变 */
.pc-auth-form-inner {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 10px;
  padding: 32px 40px 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: min-height 0.2s ease;
}

.pc-auth-form-inner.is-login {
  min-height: 0;
  height: auto;
}

.pc-auth-form-inner.is-register,
.pc-auth-form-inner.is-find {
  min-height: 580px;
  max-height: none;
  overflow: visible;
}

.pc-auth-form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-auth-tabs-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.pc-auth-panel.active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#panel-register.active,
#panel-find.active {
  min-height: 0;
}

#panel-login.active {
  min-height: 0;
  flex: 1;
}

.pc-auth-panel-bottom {
  margin-top: auto;
  padding-top: 4px;
}

#panel-login .pc-auth-panel-bottom {
  margin-top: 0;
}

#panel-login .pc-auth-submit {
  margin-bottom: 14px;
}

#panel-login .pc-auth-center-link {
  margin-top: 14px;
}

.pc-auth-form-title {
  font-size: 22px;
  font-weight: 700;
  color: #f3524d;
  margin: 0 0 18px;
  line-height: 1.2;
}

.pc-auth-tabs {
  display: flex;
  align-items: flex-end;
  min-height: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.pc-auth-tab {
  display: inline-block;
  font-size: 15px;
  color: #999;
  font-weight: 500;
  padding: 0 2px 10px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.pc-auth-tab.is-active {
  color: #f3524d;
  font-weight: 600;
  border-bottom-color: #f3524d;
}

.pc-auth-tab-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 14px 10px;
  background: #ddd;
  vertical-align: bottom;
}

.pc-auth-field.is-hidden {
  display: none;
}

#login-remember-row.is-sms-mode label {
  visibility: hidden;
}

.pc-auth-field {
  margin-bottom: 16px;
}

.pc-auth-field-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.2;
}

.pc-auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: #f2f2f2;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.pc-auth-field input:focus {
  background: #ececec;
  box-shadow: inset 0 0 0 1px rgba(243, 82, 77, 0.35);
}

.pc-auth-field input::placeholder {
  color: #c0c0c0;
}

.pc-auth-pwd-row {
  position: relative;
}

.pc-auth-pwd-row input {
  padding-right: 42px;
}

.pc-auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 5C7 5 2.7 8.1 1 12c1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.pc-auth-eye.is-visible {
  opacity: 0.7;
}

.pc-auth-sms-row {
  position: relative;
}

.pc-auth-sms-row input {
  padding-right: 100px;
}

.pc-auth-sms-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #f3524d;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}

.pc-auth-sms-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.pc-auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 18px;
  font-size: 13px;
}

.pc-auth-row-between label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #f3524d;
  user-select: none;
}

.pc-auth-row-between input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #f3524d;
}

.pc-auth-link {
  color: #f3524d;
  text-decoration: none;
  cursor: pointer;
}

.pc-auth-link:hover {
  opacity: 0.88;
}

.pc-auth-link-muted {
  color: #999;
}

.pc-auth-footer-muted-link {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.pc-auth-footer-muted-link:hover {
  color: #777;
}

.pc-auth-contact-wrap {
  font-size: 13px;
}

.pc-auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: #f3524d;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
  letter-spacing: 2px;
}

.pc-auth-submit:hover {
  background: #e84540;
}

.pc-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pc-auth-submit-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.pc-auth-submit-row .pc-auth-submit {
  flex: 1;
  font-size: 15px;
  letter-spacing: 1px;
}

.pc-auth-btn-secondary {
  background: #f3524d;
  color: #fff;
}

.pc-auth-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.pc-auth-center-link {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}

.pc-auth-msg {
  min-height: 18px;
  font-size: 12px;
  margin-bottom: 8px;
}

.pc-auth-msg.error {
  color: #f3524d;
}

.pc-auth-msg.success {
  color: #67c23a;
}

.pc-auth-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pc-auth-mask.show {
  display: flex;
}

.pc-auth-captcha-box,
.pc-auth-wechat-box {
  background: #fff;
  padding: 24px 28px;
  border-radius: 10px;
  width: 340px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pc-auth-wechat-box h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.pc-auth-wechat-box p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #888;
}

.pc-auth-wechat-box img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  object-fit: contain;
  border: 1px solid #f0f0f0;
}

.pc-auth-captcha-box img {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  cursor: pointer;
}

.pc-auth-captcha-box input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #f5f5f5;
}

.pc-auth-mask-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.pc-auth-mask-actions .pc-auth-submit {
  flex: 1;
  height: 42px;
  font-size: 14px;
  letter-spacing: 0;
}

.pc-auth-mask-actions .pc-auth-btn-secondary {
  background: #fff;
  color: #f3524d;
  border: 1px solid #f3524d;
}

.pc-auth-page-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  text-align: center;
  font-size: 12px;
  color: #fff;
  line-height: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.pc-auth-page-footer a {
  color: #fff;
  text-decoration: none;
}

.pc-auth-panel {
  display: none;
}

.pc-auth-panel.active {
  display: flex;
}

.pc-auth-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .pc-auth-card {
    flex-direction: column;
    max-width: 440px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .pc-auth-brand {
    flex: none;
    padding: 28px 24px 16px;
  }

  .pc-auth-brand-head {
    margin-bottom: 28px;
  }

  .pc-auth-welcome {
    font-size: 28px;
  }

  .pc-auth-form-wrap {
    padding: 0 20px 24px;
  }

  .pc-auth-form-inner {
    max-width: 100%;
    min-height: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }
}
