/* XSS安全测试平台 - 登录页面样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #333;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
}

.logo-icon {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 15px;
}

.nav-menu a:hover {
  color: #667eea;
}

.nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 主要内容区域 */
.main-content {
  max-width: 1400px;
  margin: 100px auto 0;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 100px);
}

/* 左侧英雄区域 */
.hero-section {
  color: white;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.title-highlight {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 50px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 功能特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 32px;
  line-height: 1;
}

.feature-text h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}

.feature-text p {
  font-size: 14px;
  opacity: 0.9;
}

/* 统计数据 */
.stats-section {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 15px;
  opacity: 0.9;
}

/* 右侧登录区域 */
.login-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 35px;
  text-align: center;
  color: white;
}

.login-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 15px;
  opacity: 0.95;
}

.login-body {
  padding: 40px 35px;
}

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

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.label-icon {
  font-size: 18px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fff;
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: #999;
}

/* 验证码组 */
.captcha-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.captcha-input {
  flex: 1;
}

.captcha-image {
  width: 130px;
  height: 52px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  object-fit: cover;
}

.captcha-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #667eea;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* 分隔线 */
.login-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e0e0e0;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

.login-divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 14px;
}

/* 注册链接 */
.register-link {
  display: block;
  text-align: center;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.register-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #764ba2;
}

/* 安全提示 */
.security-notice {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ff9800;
}

.notice-icon {
  font-size: 24px;
  line-height: 1;
}

.notice-text {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.notice-text strong {
  color: #ff9800;
  display: block;
  margin-bottom: 5px;
}

/* 页面底部 */
.page-footer {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 50px 40px 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
  pointer-events: none;
}

.decoration-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.decoration-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 5%;
  animation: float2 10s ease-in-out infinite;
}

.decoration-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  animation: float3 12s ease-in-out infinite;
}

.decoration-4 {
  width: 250px;
  height: 250px;
  bottom: -50px;
  right: 20%;
  animation: float1 9s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(180deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -40px) rotate(-180deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.1); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-title {
    font-size: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-section {
    justify-content: center;
  }

  .login-section {
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 20px;
  }

  .nav-menu {
    gap: 20px;
    font-size: 14px;
  }

  .logo-text {
    display: none;
  }

  .main-content {
    padding: 40px 20px;
    margin-top: 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .stats-section {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .login-card {
    border-radius: 20px;
  }

  .login-header,
  .login-body {
    padding: 30px 25px;
  }

  .captcha-group {
    flex-direction: column;
  }

  .captcha-image {
    width: 100%;
  }

  .page-footer {
    padding: 40px 20px 20px;
  }
}

/* 无障碍优化 */
.form-input:focus-visible,
.submit-btn:focus-visible,
.captcha-image:focus-visible,
.nav-menu a:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}
