﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-container {
  background: white;
  padding: 60px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.auth-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 40px;
  font-weight: 500;
}
.auth-form {
  width: 100%;
}
.input-group {
  margin-bottom: 30px;
}
.auth-input {
  width: 100%;
  height: 50px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 16px;
  color: #333;
  background-color: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}
.auth-input:focus {
  border-color: #5a7cfa;
  background-color: white;
  box-shadow: 0 0 0 2px rgba(90, 124, 250, 0.1);
}
.auth-input::placeholder {
  color: #999;
  font-size: 14px;
}
.auth-button {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #5a7cfa 0%, #4c6ef5 100%);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}
.auth-button:hover {
  background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(90, 124, 250, 0.3);
}
.auth-button:active {
  transform: translateY(0);
}
.auth-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
/* 响应式设计 */
@media (max-width: 480px) {
  .auth-container {
    margin: 20px;
    padding: 40px 30px;
  }
  .auth-title {
    font-size: 20px;
    margin-bottom: 30px;
  }
}
/* 加载动画 */
.loading {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 错误提示样式 */
.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  text-align: left;
  display: none;
}
.auth-input.error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
}