/* 基础重置和全局样式 */
:root {
  --primary-color: #2563eb;
  --hover-color: #1d4ed8;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
}

/* 首页特效 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" d="M0,160L48,138.7C96,117,192,75,288,74.7C384,75,480,117,576,122.7C672,128,768,96,864,96C960,96,1056,128,1152,138.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
  background-size: cover;
}

/* 认证卡片样式 */
.auth-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-5px);
}

.input-group-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  z-index: 3;
  font-size: 1.1rem;
}

/* 表单控件 */
.form-control {
  padding-left: 3.5rem !important;
  height: 3.5rem;
  border-radius: 0.75rem !important;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 按钮样式 */
.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 功能亮点卡片 */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 4rem;
  }
  
  .auth-card {
    padding: 2rem !important;
  }
  
  .form-control {
    height: 3rem;
    padding-left: 2.8rem !important;
  }
}

/* Toast 通知样式 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

/* 滚动动画样式 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}