/* ============ 登录/注册页 ============ */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
  position: relative; overflow: hidden;
}

.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 940px; min-height: 560px;
  background: var(--surface-solid); border: 1px solid rgba(201, 164, 92, 0.38); border-radius:24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 60px rgba(33, 32, 30, 0.10);
}
.login-brand {
  background: var(--skin-banner);
  color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  border-right: 1px solid rgba(201, 164, 92, 0.28);
}
.login-brand::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.35); bottom: -90px; right: -90px;
}
.login-brand::before {
  content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.16); bottom: -155px; right: -155px;
}
.login-brand .logo {
  display: flex; align-items: center; gap: 14px;
}
.login-brand .logo-mark {
  width: 46px; height: 46px; border-radius:16px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(201, 164, 92, 0.5);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
}
.login-brand .logo-text h1 { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.login-brand .logo-text p { font-size: 13px; opacity: .82; margin-top: 2px; }
.login-brand .brand-main h2 {
  font-size: 27px; line-height: 1.4; font-weight: 700; margin-bottom: 14px;
}
.login-brand .brand-main p { font-size: 14px; opacity: .88; line-height: 1.8; }
.login-brand .brand-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.login-brand .feat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.login-brand .feat .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.login-brand .brand-foot { font-size: 12px; opacity: .7; }

.login-form-side {
  padding: 46px 46px 40px; display: flex; flex-direction: column; justify-content: center;
}
.login-form-side .mobile-logo { display: none; }
.tabs {
  display: flex; background: var(--surface-2); border-radius:12px; padding: 4px; margin-bottom: 26px;
}
.tabs .tab {
  flex: 1; text-align: center; padding: 9px 0; border-radius:12px;
  font-size: 14px; font-weight: 600; color: var(--text-3); border: none; background: transparent;
  transition: all .18s;
}
.tabs .tab.active { background: var(--primary-soft); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.form-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.form-sub { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }

.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 42px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--text-3); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius:10px;
}
.pwd-toggle:hover { color: var(--text); background: var(--bg); }

.error-msg {
  display: none; background: var(--red-soft); color: var(--red-text); border: 1px solid var(--red-border);
  padding: 10px 14px; border-radius:12px; font-size: 13px; margin-bottom: 16px;
}
.error-msg.show { display: flex; align-items: center; gap: 8px; }

.form-foot { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 22px; }
.form-foot a { color: var(--primary); font-weight: 600; cursor: pointer; }
.form-foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .login-card { grid-template-columns: 1fr; max-width: 460px; }
  .login-brand { display: none; }
  .login-form-side { padding: 36px 30px; }
  .login-form-side .mobile-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  }
  .login-form-side .mobile-logo .logo-mark {
    width: 40px; height: 40px; border-radius:12px; font-weight: 800; font-size: 19px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  .login-form-side .mobile-logo h1 { font-size: 18px; }
}
