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

/* Modern CSS Variables for consistency */
:root {
    --primary-blue: #007bff;
    --primary-green: #00e676;
    --accent-blue: #0056b3;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: #000;
}

.container {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: url('bgimg.jpeg') center/cover no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    overflow: hidden;
}

/* Enhanced Background with Moving Gradient */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 123, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 230, 118, 0.1) 50%, transparent 70%);
    animation: gradientShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.1) rotate(180deg); }
}

.logo-container {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    animation: logoFadeIn 1.5s ease-out;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.logo:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 191, 0.3) 0%,
        rgba(0, 86, 150, 0.4) 50%,
        rgba(0, 47, 108, 0.5) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    padding: 40px;
    animation: fadeInUp 1.5s ease-out;
    /* Transparent Card Effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.main-header {
    margin-bottom: 50px;
    position: relative;
}

/* Enhanced Typography with Solid Colors */
.title {
    font-size: clamp(2.2rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: titlePulse 4s ease-in-out infinite;
    position: relative;
}

.title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 16px;
    opacity: 0;
    animation: titleGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes titlePulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

@keyframes titleGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.subtitle {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-top: 15px;
    color: #e3f2fd;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
    animation: subtitleSlide 2s ease-out 0.8s both;
    letter-spacing: 0.5px;
}

@keyframes subtitleSlide {
    from {
        opacity: 0;
        transform: translateX(-50px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.action-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* Modern Button with Advanced Effects */
.register-btn {
    position: relative;
    background: linear-gradient(135deg, #00e676 0%, #00c853 50%, #00a152 100%);
    border: none;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 15px 35px rgba(0, 230, 118, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 250px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: buttonFloat 3s ease-in-out infinite;
    /* Link-specific styles */
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

@keyframes buttonFloat {
    0%, 100% { 
        transform: translateY(0px);
        box-shadow: 
            0 15px 35px rgba(0, 230, 118, 0.3),
            0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: translateY(-5px);
        box-shadow: 
            0 25px 50px rgba(0, 230, 118, 0.4),
            0 10px 25px rgba(0, 0, 0, 0.3);
    }
}

.register-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 230, 118, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #00f57c 0%, #00e676 30%, #00c853 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.register-btn:active {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.1s ease;
}

.btn-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: all 0.3s ease;
}

.register-btn:hover .btn-text {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: left 0.6s ease;
    transform: skewX(-20deg);
}

.register-btn:hover .btn-glow {
    left: 100%;
}

/* Enhanced Floating Particles */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(0, 230, 118, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(0, 123, 255, 0.1) 1px, transparent 1px);
    background-size: 150px 150px, 200px 200px, 100px 100px, 250px 250px;
    animation: floatParticles 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatParticles {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    33% { transform: translateY(-30px) translateX(10px) rotate(120deg); }
    66% { transform: translateY(-10px) translateX(-15px) rotate(240deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

/* Responsive Design with Enhanced Mobile Experience */
@media (max-width: 768px) {
    .container {
        padding-top: 12vh;
    }
    
    .logo {
        height: 60px;
    }
    
    .logo-container {
        top: 20px;
        left: 20px;
    }
    
    .content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .subtitle {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }
    
    .register-btn {
        padding: 18px 45px;
        font-size: 1rem;
        min-width: 220px;
        letter-spacing: 1.5px;
    }
    
    .main-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-top: 10vh;
    }
    
    .logo {
        height: 50px;
    }
    
    .logo-container {
        top: 15px;
        left: 15px;
    }
    
    .content {
        padding: 25px 15px;
        margin: 0 10px;
        border-radius: 20px;
    }
    
    .title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
    
    .register-btn {
        padding: 15px 35px;
        font-size: 0.95rem;
        min-width: 200px;
        letter-spacing: 1px;
    }
    
    .main-header {
        margin-bottom: 35px;
    }
    
    .action-section {
        margin-top: 30px;
    }
}

/* Advanced Loading Animation */
.content {
    opacity: 0;
    animation: contentReveal 2s ease-out 0.5s forwards;
}

@keyframes contentReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Accessibility and Performance Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.register-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.logo:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
    border-radius: 8px;
} 