/* AI科技感登录页面样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
}

/* Canvas粒子画布 */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 背景容器 */
.ai-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* 渐变背景 */
.ai-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #0a0a1a 0%, 
    #1a1a3a 25%, 
    #0d1b2a 50%, 
    #1b263b 75%, 
    #0a0a1a 100%);
  z-index: 1;
}

/* 粒子效果 */
.ai-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -20px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, 40px) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translate(20px, 10px) scale(1.1);
    opacity: 0.7;
  }
}

/* 电路图案 */
.ai-circuit-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* 网格线 */
.ai-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(0deg, transparent 50%, rgba(0, 212, 255, 0.02) 50%),
    linear-gradient(90deg, transparent 50%, rgba(0, 212, 255, 0.02) 50%);
  background-size: 100px 100px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

/* 扫描线效果 */
.ai-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 212, 255, 0.8) 50%, 
    transparent 100%);
  animation: scannerMove 4s ease-in-out infinite;
  opacity: 0.6;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.ai-scanner-line-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(123, 44, 191, 0.6) 50%, 
    transparent 100%);
  animation: scannerMove2 6s ease-in-out infinite;
  opacity: 0.4;
  box-shadow: 0 0 10px rgba(123, 44, 191, 0.6);
}

@keyframes scannerMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

@keyframes scannerMove2 {
  0% { left: 0; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { left: 100%; opacity: 0; }
}

/* 光线效果 */
.ai-light-beam {
  position: absolute;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 212, 255, 0.6), 
    transparent);
  animation: beamMove 8s ease-in-out infinite;
  opacity: 0.3;
}

.beam-1 {
  top: 30%;
  left: -200px;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.beam-2 {
  top: 50%;
  left: -200px;
  transform: rotate(-10deg);
  animation-delay: 2s;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(123, 44, 191, 0.6), 
    transparent);
}

.beam-3 {
  top: 70%;
  left: -200px;
  transform: rotate(5deg);
  animation-delay: 4s;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 255, 136, 0.6), 
    transparent);
}

@keyframes beamMove {
  0% { left: -200px; opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { left: 100%; opacity: 0; }
}

/* 数据流效果 */
.ai-data-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    rgba(0, 212, 255, 0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: dataFlow 2s linear infinite;
  pointer-events: none;
}

@keyframes dataFlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* 登录容器 */
.ai-login-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* 登录卡片 */
.ai-login-card {
  position: relative;
  width: 420px;
  background: rgba(10, 20, 40, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 212, 255, 0.05) 50%, 
    transparent 100%);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 头部区域 */
.ai-login-header {
  text-align: center;
  padding: 35px 30px 25px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
  position: relative;
}

/* Logo容器 */
.ai-logo-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.ai-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.ai-svg {
  width: 100%;
  height: 100%;
}

.ai-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* 标题 */
.ai-title {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

/* 状态指示器 */
.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(0, 212, 255, 0.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px #00ff88;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* 登录表单 */
.ai-login-form {
  padding: 0 30px 25px;
}

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

/* 输入框容器 */
.ai-input-wrapper {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ai-input-wrapper:focus-within {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 
    0 0 15px rgba(0, 212, 255, 0.15),
    inset 0 0 20px rgba(0, 212, 255, 0.03);
}

/* 输入框图标 */
.ai-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(0, 212, 255, 0.5);
  z-index: 2;
  transition: color 0.3s ease;
}

.ai-input-wrapper:focus-within .ai-input-icon {
  color: rgba(0, 212, 255, 0.8);
}

.ai-input-icon svg {
  width: 100%;
  height: 100%;
}

/* 输入框 */
.ai-input {
  width: 100%;
  height: 48px;
  padding: 12px 15px 12px 50px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.ai-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* 输入框聚焦边框 */
.ai-input-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2cbf);
  transition: width 0.3s ease;
}

.ai-input-wrapper:focus-within .ai-input-focus-border {
  width: 100%;
}

/* 验证码行 */
.ai-captcha-row {
  display: flex;
  gap: 12px;
}

.ai-captcha-row .ai-input-wrapper.captcha-input {
  flex: 1;
}

/* 验证码图片容器 */
.ai-captcha-image {
  position: relative;
  width: 110px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-captcha-image:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: scale(1.02);
}

.captcha-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-refresh-hint {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

/* 表单选项 */
.ai-form-options {
  display: flex;
  align-items: center;
  padding: 5px 0 10px;
}

/* 自定义复选框 */
.ai-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.ai-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.ai-checkbox input:checked + .checkmark {
  background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.ai-checkbox input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.ai-checkbox:hover .checkbox-label {
  color: rgba(255, 255, 255, 0.7);
}

/* 登录按钮 */
.ai-login-btn {
  width: 100%;
  height: 50px;
  margin: 10px 0 20px;
  padding: 0;
  background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(123, 44, 191, 0.2);
}

.ai-login-btn:active {
  transform: translateY(0);
}

.ai-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  transition: left 0.5s ease;
}

.ai-login-btn:hover::before {
  left: 100%;
}

/* 按钮图标 */
.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.ai-login-btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

/* 按钮发光 */
.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-login-btn:hover .btn-glow {
  opacity: 1;
}

/* 表单链接 */
.ai-form-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-bottom: 10px;
}

.ai-link {
  font-size: 13px;
  color: rgba(0, 212, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.ai-link:hover {
  color: #00d4ff;
}

.ai-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  transition: width 0.3s ease;
}

.ai-link:hover::after {
  width: 100%;
}

/* 底部区域 */
.ai-login-footer {
  padding: 20px 30px 25px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  text-align: center;
}

/* 安全徽章 */
.ai-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(0, 255, 136, 0.6);
  margin-bottom: 15px;
}

.ai-security-badge svg {
  width: 14px;
  height: 14px;
}

/* 版权信息 */
.ai-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.ai-copyright a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ai-copyright a:hover {
  color: rgba(0, 212, 255, 0.6);
}

/* 装饰球体 */
.ai-decor-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.3;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #00d4ff 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #7b2cbf 0%, transparent 70%);
  bottom: -50px;
  left: -30px;
  animation: orbFloat2 12s ease-in-out infinite;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #00ff88 0%, transparent 70%);
  top: 50%;
  left: 10%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 20px) scale(1.2); }
}

/* 响应式设计 */
@media screen and (max-width: 480px) {
  .ai-login-card {
    width: 100%;
    margin: 10px;
    border-radius: 15px;
  }
  
  .ai-login-header {
    padding: 25px 20px 18px;
  }
  
  .ai-logo-wrapper {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
  }
  
  .ai-title {
    font-size: 22px;
  }
  
  .ai-login-form {
    padding: 0 20px 20px;
  }
  
  .ai-form-options {
    padding: 5px 0 5px;
  }
  
  .ai-login-btn {
    height: 46px;
    margin: 8px 0 15px;
  }
  
  .ai-form-links {
    gap: 20px;
  }
  
  .ai-login-footer {
    padding: 15px 20px 20px;
  }
  
  .ai-captcha-image {
    width: 95px;
  }
}