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

:root {
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', Arial, sans-serif;
}

.security-page {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #1a0d3d 0%,
    #2d1b69 25%,
    #4a2c8a 50%,
    #6b46c1 75%,
    #8b5cf6 100%
  );
}

.security-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(139, 92, 246, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(168, 85, 247, 0.2) 0%,
      transparent 50%
    );
}

.security-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
}

.security-content {
  width: min(500px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: fade-rise 0.8s ease both;
}

.security-content h1 {
  font-size: 24px;
  font-weight: 650;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shield-stage {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-svg {
  position: relative;
  z-index: 3;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
  animation: shield-pulse 3s ease-in-out infinite;
}

.shield-svg rect {
  fill: rgba(255, 255, 255, 0.82);
  animation: line-pulse 2s ease-in-out infinite;
}

.shield-svg rect:nth-of-type(2) {
  animation-delay: 0.2s;
}

.shield-svg rect:nth-of-type(3) {
  animation-delay: 0.4s;
}

.shield-svg rect:nth-of-type(4) {
  animation-delay: 0.6s;
}

.scan-ring {
  position: absolute;
  border: 2px solid rgba(139, 92, 246, 0.46);
  border-radius: 50%;
  animation: scan-pulse 3s ease-out infinite;
}

.ring-one {
  width: 100px;
  height: 100px;
}

.ring-two {
  width: 140px;
  height: 140px;
  animation-delay: 0.5s;
}

.ring-three {
  width: 180px;
  height: 180px;
  animation-delay: 1s;
}

.security-status {
  font-size: 18px;
  font-weight: 550;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: text-pulse 2s ease-in-out infinite;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shield-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.6));
  }
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scan-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes text-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@media (max-width: 768px) {
  .security-content {
    gap: 25px;
  }

  .security-content h1 {
    font-size: 20px;
  }

  .shield-stage {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 520px) {
  .security-content h1 {
    font-size: 18px;
  }

  .security-status {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
