/* ─── 登录注册页专用样式 ─── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg-dark);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  min-height: 100vh;
}
.auth-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('https://images.unsplash.com/photo-1508804185872-d7badad00f7d?w=900&auto=format');
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,.92) 0%, rgba(17,24,39,.4) 60%, transparent 100%);
  z-index: 1;
}
.auth-visual-content {
  position: relative;
  z-index: 2;
}
.auth-visual-logo {
  position: absolute;
  top: 40px;
  left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-visual-tagline {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.auth-visual-tagline em {
  font-style: normal;
  color: var(--accent);
}
.auth-visual-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}
.auth-visual-dots {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}
.auth-visual-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.auth-visual-dots span.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.auth-form-side {
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 64px;
  min-height: 100vh;
  position: relative;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}
.auth-form-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.auth-form-subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: .8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.auth-switch {
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 24px;
}
.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.password-toggle {
  position: relative;
}
.password-toggle input { padding-right: 44px; }
.password-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.password-eye:hover { color: var(--primary); }

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.forgot-link {
  font-size: .88rem;
  color: var(--primary);
  font-weight: 600;
}
.forgot-link:hover { text-decoration: underline; }

.strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.strength-seg {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}
.strength-seg.weak   { background: #dc2626; }
.strength-seg.medium { background: var(--accent); }
.strength-seg.strong { background: #10b981; }
.strength-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.auth-back {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.auth-back:hover { color: var(--primary); }

.terms-note {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 16px;
  text-align: center;
}
.terms-note a { color: var(--primary); }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 60px 28px; }
  .auth-form-wrap { max-width: 100%; }
}
