* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

.space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.military-bg {
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, #0a0a0a, #111827);
}

.elite-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glowing-border {
    position: relative;
}

.glowing-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.8), 
        rgba(220, 38, 38, 0.8), 
        rgba(59, 130, 246, 0.8));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glowing-border:hover::before {
    opacity: 1;
}

.input-field {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(30, 41, 59, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #dc2626 100%);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(30, 41, 59, 0.9);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

.jet-particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.hologram-text {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.8),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(59, 130, 246, 0.4);
    animation: hologramPulse 2s ease-in-out infinite;
}

@keyframes hologramPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.security-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.rank-badge {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .elite-card {
        padding: 1.5rem !important;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .main-title {
        font-size: 2.5rem !important;
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .subtitle {
        font-size: 1.125rem !important;
        padding: 0 1rem;
        line-height: 1.4;
    }
    
    .input-field {
        padding-left: 3rem !important;
        font-size: 0.875rem;
    }
    
    .material-symbols-outlined.input-icon {
        left: 1rem !important;
        font-size: 1.25rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.875rem;
        padding: 0.75rem !important;
    }
    
    .system-status {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .main-title {
        font-size: 2rem !important;
    }
    
    .subtitle {
        font-size: 1rem !important;
    }
    
    .elite-card {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .security-badge {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
    
    .demo-access {
        font-size: 0.75rem;
        padding: 0.75rem !important;
    }
    
    .demo-access code {
        font-size: 0.7rem;
    }
    
    .material-symbols-outlined.text-5xl {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.75rem !important;
    }
    
    .subtitle {
        font-size: 0.875rem !important;
    }
    
    .elite-card {
        padding: 1rem !important;
    }
    
    .btn-primary span,
    .btn-secondary span {
        font-size: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.625rem !important;
        padding: 0 1rem;
    }
    
    .access-level, .rank-badge {
        font-size: 0.75rem !important;
    }
    
    label.text-sm {
        font-size: 0.75rem;
    }
    
    .scan-line {
        height: 1px;
    }
}

@media (min-width: 1920px) {
    .elite-card {
        max-width: 28rem;
        padding: 3rem !important;
    }
    
    .main-title {
        font-size: 4rem !important;
    }
    
    .subtitle {
        font-size: 1.5rem !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 1.5rem !important;
        font-size: 1.125rem;
    }
    
    .input-field {
        padding: 1rem 1rem 1rem 4rem !important;
        font-size: 1.125rem;
    }
    
    .material-symbols-outlined.input-icon {
        left: 1.5rem !important;
        font-size: 1.5rem;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .min-h-screen {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .header-container {
        margin-bottom: 1rem !important;
    }
    
    .elite-card {
        padding: 1.5rem !important;
        margin: 0.5rem auto;
    }
    
    .space-y-6 {
        space-y: 1rem !important;
    }
    
    .footer {
        margin-top: 1rem !important;
    }
    
    .system-status {
        margin-top: 0.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary::after,
    .btn-secondary:hover,
    .glowing-border:hover::before {
        display: none;
    }
    
    .input-field {
        min-height: 44px; /* Minimum touch target */
    }
    
    button, 
    a, 
    input[type="checkbox"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-primary, 
    .btn-secondary {
        padding-top: 0.875rem !important;
        padding-bottom: 0.875rem !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .input-field {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scan-line,
    .jet-particle,
    .hologram-text,
    .btn-primary::after,
    .animate-pulse,
    .animate-spin {
        animation: none !important;
    }
}
