/* 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

header h1 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 600;
}

.logout-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

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

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

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

/* 消息提示 */
.message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s;
  z-index: 1000;
}

.message.show {
  opacity: 1;
  transform: translateX(0);
}

.message.success {
  background-color: #2ecc71;
}

.message.error {
  background-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .message {
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
  }

  .message.show {
    transform: translateY(0);
  }
}