/* 基础样式 */
:root {
  --primary-color: #2c7be5; /* 取自目标网站导航栏色调 */
  --secondary-color: #4a4a4a; /* 新增文字主色 */
  --button-hover: #1c5bb3; /* 按钮悬停加深 */
  --border-radius: 6px; /* 统一圆角值 */
  --box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* 卡片投影效果 */
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.error-message {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
  padding: 2px 5px;
  background: #f8d7da;
  border-radius: 3px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 500;
  color: #333;
}

input {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  color: var(--secondary-color);
  transition: border-color 0.3s;
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44,123,229,0.1);
}

input:focus {
  outline: 2px solid var(--primary-color);
  border-color: transparent;
}

.error {
  color: var(--error-color);
  font-size: 0.875rem;
  height: 1.2rem;
}

button {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 1.5rem;
}

button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

button:hover {
  opacity: 0.9;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}