/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a0d3d 0%, #2d1b69 25%, #4a2c8a 50%, #6b46c1 75%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Background Overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%);
    pointer-events: none;
}

/* Security Container */
.security-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Security Content */
.security-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 500px;
    padding: 40px 20px;
}

/* Main Title */
.main-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.4;
}

/* Subtitle */
.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    margin: -10px 0 20px 0;
}

/* Security Icon Container */
.security-icon {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* Shield Icon */
.shield-icon {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 3;
}

.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
}

.shield-path {
    animation: shieldPulse 3s ease-in-out infinite;
}

.security-line {
    animation: securityScan 2s ease-in-out infinite;
}

.security-line:nth-child(5) { animation-delay: 0.2s; }
.security-line:nth-child(6) { animation-delay: 0.4s; }
.security-line:nth-child(7) { animation-delay: 0.6s; }
.security-line:nth-child(8) { animation-delay: 0.8s; }

/* Animated Scan Rings */
.scan-ring {
    position: absolute;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: scanPulse 3s ease-out infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

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

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

/* Status Text */
.status-text {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.8px;
    animation: textPulse 2s ease-in-out infinite;
}

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

@keyframes securityScan {
    0%, 100% {
        opacity: 0.6;
        fill: rgba(255, 255, 255, 0.6);
    }
    50% {
        opacity: 1;
        fill: rgba(255, 255, 255, 1);
    }
}

@keyframes scanPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        border-color: rgba(139, 92, 246, 0.8);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
        border-color: rgba(168, 85, 247, 0.6);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        border-color: rgba(196, 181, 253, 0.2);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        color: #ffffff;
    }
    50% {
        opacity: 0.7;
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Fade In Animation */
.security-container {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .security-content {
        gap: 25px;
        padding: 30px 15px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .security-icon {
        width: 100px;
        height: 100px;
    }
    
    .shield-icon {
        width: 70px;
        height: 70px;
    }
    
    .ring-1 {
        width: 80px;
        height: 80px;
    }
    
    .ring-2 {
        width: 120px;
        height: 120px;
    }
    
    .ring-3 {
        width: 160px;
        height: 160px;
    }
    
    .status-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .security-icon {
        width: 90px;
        height: 90px;
    }
    
    .shield-icon {
        width: 60px;
        height: 60px;
    }
    
    .status-text {
        font-size: 15px;
    }
}

/* Selection styling */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Loading state effects */
.security-container.loading .shield-path {
    animation-duration: 2s;
}

.security-container.loading .scan-ring {
    animation-duration: 2s;
}

.security-container.loading .status-text {
    animation-duration: 1.5s;
} 