/* Simpsons x Crypto Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --simpson-yellow: #FFD90F;
    --marge-blue: #0B78C6;
    --donut-pink: #F56FA1;
    --text-dark: #333333;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--simpson-yellow) 0%, var(--marge-blue) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    box-shadow: var(--shadow);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    overflow: hidden;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.video-section {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-weight: 800;
    color: var(--marge-blue);
    margin-top: 0;
    text-shadow: 1px 1px 0px #fff;
}

.tagline {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 25px;
}

.textbox {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-dark);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.textbox:focus {
    outline: none;
    border-color: var(--marge-blue);
    box-shadow: 0 0 15px rgba(11, 120, 198, 0.3);
    transform: translateY(-2px);
}

.hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.button {
    background: var(--donut-pink);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 18px;
    font-size: 18px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(245, 111, 161, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 111, 161, 0.6);
    background: #ff85b3;
    /* Lighter pink on hover */
}

.button:active {
    transform: translateY(1px);
}

.message {
    margin: 15px 0;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
        margin: 20px 0;
        border-radius: 16px;
    }

    .video-section {
        height: 250px;
    }

    .form-section {
        padding: 25px;
    }

    h2 {
        font-size: 24px;
    }
}