/* 认证相关样式 */
.auth-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.auth-container.active {
  display: flex;
}

.auth-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.auth-box h2 {
  margin-bottom: 24px;
  text-align: center;
  color: #333;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
}

.auth-tab.active {
  color: #0066ff;
  border-bottom-color: #0066ff;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

/* 认证表单内的输入框样式 */
.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.auth-form small {
  color: #666;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.auth-form button:hover {
  background: #0052cc;
}

.auth-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 用户信息显示 */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 50;
}

.user-info .username {
  font-weight: 600;
  color: #333;
}

.user-info button {
  padding: 6px 12px;
  font-size: 14px;
  width: auto;
}

/* 登录触发按钮 */
.auth-trigger {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,102,255,0.3);
  transition: background 0.2s;
}

.auth-trigger:hover {
  background: #0052cc;
}

/* 响应式 */
@media (max-width: 480px) {
  .auth-box {
    padding: 30px 20px;
  }
  
  .auth-trigger,
  .user-info {
    top: 10px;
    right: 10px;
  }
}
