/* 登录页面样式 */
.main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 0 20px;
}

.hero-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 400px;
}

.tech-graphics {
  position: relative;
  width: 100%;
  height: 400px;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(96, 165, 250, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: pulse 4s ease-in-out infinite;
}

.cube-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  perspective: 1000px;
}

.cube {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 8s linear infinite;
}

.cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.cube-face.front {
  transform: rotateY(0deg) translateZ(60px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(60px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(60px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(60px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(60px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(60px);
}

.icon {
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.element {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(96, 165, 250, 0.6);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.element-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.element-2 {
  top: 60%;
  right: 25%;
  animation-delay: 1s;
}

.element-3 {
  bottom: 30%;
  left: 30%;
  animation-delay: 2s;
}

.element-4 {
  top: 40%;
  right: 15%;
  animation-delay: 3s;
}

.element-5 {
  bottom: 20%;
  right: 35%;
  animation-delay: 1.5s;
}

.element-6 {
  top: 70%;
  left: 15%;
  animation-delay: 2.5s;
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(167, 139, 250, 0.8);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 30%; right: 20%; animation-delay: 1s; }
.particle-3 { bottom: 40%; left: 25%; animation-delay: 2s; }
.particle-4 { top: 60%; right: 15%; animation-delay: 3s; }
.particle-5 { bottom: 20%; right: 30%; animation-delay: 4s; }
.particle-6 { top: 50%; left: 35%; animation-delay: 5s; }
.particle-7 { bottom: 60%; left: 15%; animation-delay: 2.5s; }
.particle-8 { top: 20%; right: 35%; animation-delay: 3.5s; }

.hero-right {
  flex: 1;
  max-width: 400px;
}

.login-form {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-small {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.form-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.form-header p {
  color: #94a3b8;
  font-size: 14px;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.forgot-password {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #3b82f6;
}

.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #94a3b8;
}

.register-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.register-link:hover {
  color: #3b82f6;
}

/* 动画 */
@keyframes rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 40px;
    padding: 0 15px;
  }
  
  .hero-left,
  .hero-right {
    flex: 1;
    max-width: 100%;
  }
  
  .tech-graphics {
    height: 300px;
  }
  
  .cube {
    width: 80px;
    height: 80px;
  }
  
  .cube-face {
    width: 80px;
    height: 80px;
  }
  
  .cube-face.front {
    transform: rotateY(0deg) translateZ(40px);
  }
  
  .cube-face.back {
    transform: rotateY(180deg) translateZ(40px);
  }
  
  .cube-face.right {
    transform: rotateY(90deg) translateZ(40px);
  }
  
  .cube-face.left {
    transform: rotateY(-90deg) translateZ(40px);
  }
  
  .cube-face.top {
    transform: rotateX(90deg) translateZ(40px);
  }
  
  .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(40px);
  }
  
  .icon {
    font-size: 24px;
  }
  
  .login-form {
    padding: 30px 24px;
  }
  
  .form-header h2 {
    font-size: 20px;
  }
}