/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

body {
    background: #0a0e1a;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Canvas for circuit lines */
#circuitCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Glowing connection points */
.connection-point {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #ff3333,
        0 0 20px #ff3333,
        0 0 30px #ff3333;
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

.connection-point.large {
    width: 12px;
    height: 12px;
    box-shadow: 
        0 0 15px #ff3333,
        0 0 30px #ff3333,
        0 0 45px #ff3333,
        0 0 60px #ff1a1a;
}

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

/* Particle dots */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ff6666;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* Data flow animation */
.data-flow {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3333;
    animation: flowMove 4s linear infinite;
    z-index: 1;
}

@keyframes flowMove {
    0% { 
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateX(var(--flow-x)) translateY(var(--flow-y));
        opacity: 0;
    }
}

/* Corner decorative elements */
.corner-tech {
    position: fixed;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    pointer-events: none;
    z-index: 1;
}

.corner-tech.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-tech.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-tech.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-tech.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Font classes */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-200 { 
    animation-delay: 0.2s; 
    opacity: 0; 
}

/* Glassmorphism with red theme */
.card-glass {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 51, 51, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(255, 51, 51, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dynamic shine effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 51, 51, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-shine:hover::before {
    opacity: 1;
}

/* Starfield background for cards */
.card-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

.star.bright {
    width: 3px;
    height: 3px;
    opacity: 0.6;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(30, 30, 45, 0.6);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.1);
    background: rgba(30, 30, 45, 0.8);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(30, 30, 45, 0.4);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(30, 30, 45, 0.6);
    border-color: rgba(255, 51, 51, 0.4);
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #ff3333;
}

.checkbox-text {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
}

/* Member Section */
.member-section {
    padding: 1.5rem;
    background: rgba(30, 30, 45, 0.4);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.member-title {
    color: #ff3333;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
}

/* Register Button */
.register-btn {
    font-family: 'Orbitron', sans-serif;
}

/* Radio Styles */
.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(30, 30, 45, 0.4);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: rgba(30, 30, 45, 0.6);
    border-color: rgba(255, 51, 51, 0.4);
}

.radio-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #ff3333;
}

.radio-text {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
}
