/* ===== 登录注册页样式 ===== */

.auth-body {
  background: #f7f2ec;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* 左侧 */
.auth-left {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-dark) 0%, #8b4513 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.logo-icon-lg {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  backdrop-filter: blur(4px);
}

.auth-logo h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.auth-logo p {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

.auth-slogan {
  margin-bottom: 36px;
}

.auth-slogan h3 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.auth-slogan p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.8;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.9;
}

.auth-feature i {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.auth-stats-mini {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}

.stat-mini {
  text-align: center;
}

.stat-mini strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.stat-mini span {
  font-size: 12px;
  opacity: 0.75;
}

/* 右侧 */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* 输入框带图标 */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i:first-child {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
}

.input-with-icon .form-control {
  padding-left: 36px;
  padding-right: 40px;
}

.toggle-pwd {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color var(--transition);
}

.toggle-pwd:hover {
  color: var(--primary);
}

/* 忘记密码 */
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: normal;
}

/* 记住我 */
.form-check-row {
  margin-bottom: 20px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}

.check-label input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.check-label a {
  color: var(--primary);
}

/* 全宽按钮 */
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 16px;
}

/* 分割线 */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 社交登录 */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.social-btn.wechat {
  color: #07c160;
  border-color: #07c160;
}

.social-btn.wechat:hover {
  background: #07c160;
  color: #fff;
}

.social-btn.qq {
  color: #1677ff;
  border-color: #1677ff;
}

.social-btn.qq:hover {
  background: #1677ff;
  color: #fff;
}

/* 切换链接 */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

/* 注册特有 */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.field-hint.error { color: #e74c3c; }
.field-hint.success { color: var(--secondary); }

/* 密码强度 */
.password-strength {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 12px;
  white-space: nowrap;
}

/* 响应式 */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    min-height: calc(100vh - 64px);
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
