/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
}

/* 登录/注册/重置密码 表单样式 */
.auth-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.auth-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #2c3e50;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.btn {
  width: 100%;
  padding: 12px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.cf-turnstile {
  margin: 20px 0;
}

.error-message {
  color: #e74c3c;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

.success-message {
  color: #27ae60;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

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

.link-text a {
  color: #3498db;
  text-decoration: none;
}

.link-text a:hover {
  text-decoration: underline;
}

/* 后台主页布局 */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* 左侧侧边栏 */
.sidebar {
  width: 220px;
  background: #2c3e50;
  color: #fff;
  padding: 20px 0;
}

.sidebar-logo {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid #34495e;
  margin-bottom: 20px;
}

.sidebar-logo h2 {
  font-size: 18px;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu-item {
  margin-bottom: 4px;
}

.sidebar-menu-link {
  display: block;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
  background: #34495e;
  color: #fff;
}

/* 右侧主内容区 */
.main-content {
  flex: 1;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.header-title {
  font-size: 20px;
  color: #2c3e50;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-btn {
  padding: 6px 12px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.logout-btn:hover {
  background: #c0392b;
}

.content-area {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-height: 600px;
}

.content-placeholder {
  text-align: center;
  padding: 100px 0;
  color: #7f8c8d;
  font-size: 16px;
}
