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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    /* Hide video controls on all devices */
    pointer-events: none;
}

/* Force hide video controls */
#background-video::-webkit-media-controls,
#background-video::-webkit-media-controls-panel,
#background-video::-webkit-media-controls-play-button,
#background-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

#background-video::-moz-media-controls,
#background-video::-moz-media-controls-panel {
    display: none !important;
}

/* Additional mobile-specific video styling */
@media (max-width: 768px) {
    #background-video {
        /* Ensure video covers full screen on mobile */
        min-width: 100vw;
        min-height: 100vh;
        width: 100vw;
        height: 100vh;
    }
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1435px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 800px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 485px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Background Logo */
.overlay-bg {
    position: absolute;
    width: 1000px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    opacity: 1;
}

.overlay-bg img {
    width: 1000px;
    height: 400px;
    max-width: none;
}

/* Hero Text */
.hero-text {
    margin-bottom: 32px;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: normal;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 60px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    color: #b1b1b1;
    text-align: center;
}

/* Signup Form */
.signup-form {
    width: 100%;
    max-width: 485px;
    margin: 0 auto;
}

.form {
    width: 100%;
}

.form-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(7.5px);
    border-radius: 16px;
    overflow: hidden;
    padding: 8px;
    align-items: center;
    justify-content: space-between;
}

.email-input {
    flex: 1;
    padding: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    background: transparent !important;
    border: none;
    outline: none;
    color: #ffffff;
    min-width: 0;
}

.email-input:focus,
.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus,
.email-input:-webkit-autofill:active {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    box-shadow: 0 0 0 30px transparent inset !important;
}
}

.email-input::placeholder {
    color: #c6c6c6;
}

.submit-btn {
    background: #ffffff;
    border: none;
    color: #171717;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 7px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0px 4px 8px 0px rgba(16, 24, 40, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.success-message,
.error-message {
    max-width: 485px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.success-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #10b981;
}

.success-content p {
    color: rgba(255, 255, 255, 0.8);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    backdrop-filter: blur(10px);
}

.hidden {
    display: none;
}

/* Loading State */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .overlay-bg img {
        width: 320px;
        height: 144px;
    }
    
    .overlay-bg {
        top: 80px;
        width: 320px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 24px;
    }
    
    .hero-tagline {
        font-size: 14px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .hero-text {
        margin-bottom: 24px;
    }
    
    .form-group {
        flex-direction: column;
        padding: 4px;
    }
    
    .email-input {
        padding: 12px 16px;
        text-align: center;
        width: 100%;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 16px;
        border-radius: 7px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .overlay-bg img {
        width: 280px;
        height: 126px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .hero-tagline {
        font-size: 12px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .email-input,
    .submit-btn {
        font-size: 14px;
    }
}

/* Video error fallback styling */
.video-container.video-error {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .video-container {
        opacity: 0.3;
    }
}

/* Focus styles for accessibility */
.email-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.submit-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}