/* ===================================
   登录注册页面样式
   =================================== */

.auth-header {
  position: relative;
  background: rgba(250, 248, 245, 0.98);
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 100px 20px 60px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-card {
  padding: 48px 40px;
}

.auth-header-content {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.auth-form .form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-primary);
}

.auth-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
  background: var(--bg-white);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.forgot-link {
  color: var(--primary);
  font-size: 0.9rem;
}

.forgot-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 16px;
}

.social-login {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-light);
}

.auth-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-link {
  color: var(--primary);
  font-weight: 500;
  margin-left: 4px;
}

.auth-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.agreement-link {
  color: var(--primary);
}

.agreement-link:hover {
  text-decoration: underline;
}

/* 右侧装饰区 */
.auth-decoration {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-decoration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  background-size: 60px;
}

.decoration-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.decoration-content h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 12px;
}

.decoration-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.decoration-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* 错误提示 */
.error-message {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.form-input.error {
  border-color: var(--accent);
}

/* 成功提示 */
.success-message {
  background: var(--secondary);
  color: white;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .auth-decoration {
    display: none;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .social-login {
    flex-direction: column;
  }
}
