:root {
    --distance-from-pipe: 360px;
}

body {
    background-color: black;
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
}

.container {
    display: flex;
    align-items: center;
    gap: clamp(20px, 8vw, 120px);
    max-width: 1400px;
    width: 100%;
}

.left-section, .right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    flex: 1;
    justify-content: center;
}

.logo {
    width: 400px;
    height: auto;
}

.text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
}

.subtext {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;
    margin-top: 15%;
}

.line {
    width: 2px;
    height: 360px;
    background-color: white;
}

.q-logo {
    position: absolute;
    top: max(80px, calc(50vh - var(--distance-from-pipe)));
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 160px;
    height: auto;
    z-index: 10;
}

.invite-text {
    position: absolute;
    top: calc(50vh + calc(var(--distance-from-pipe) / 1.75) + 20px);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 2px;
    text-align: center;
}

.email-signup {
    position: absolute;
    top: calc(50vh + var(--distance-from-pipe));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
}

.email-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-input {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    width: 250px;
    outline: none;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.email-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.submit-btn {
    background: white;
    color: black;
    border: none;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Desktop screens (1920x1080 and similar) */
@media (min-width: 1366px) and (max-height: 1080px) {
    :root {
        --distance-from-pipe: 280px;
    }
    
    body {
        padding: 60px 40px;
    }
    
    .container {
        gap: clamp(40px, 6vw, 100px);
    }
    
    .logo {
        width: 320px;
    }
    
    .text {
        font-size: 28px;
    }
    
    .subtext {
        font-size: 16px;
        margin-top: 10%;
    }
    
    .line {
        height: 280px;
    }
    
    .q-logo {
        width: 140px;
        top: max(100px, calc(50vh - var(--distance-from-pipe)));
    }
    
    .invite-text {
        top: calc(50vh + calc(var(--distance-from-pipe) / 1.75) + 10px);
        font-size: 16px;
    }
    
    .email-signup {
        top: calc(50vh + calc(var(--distance-from-pipe) - 60px));
    }
    
    .email-input {
        padding: 10px 14px;
        font-size: 13px;
        width: 220px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .form-message {
        top: calc(50vh + var(--distance-from-pipe) + 40px);
        font-size: 13px;
    }
}

/* Mobile friendly stuff */
@media (max-width: 768px) {
    .container {
        flex-direction: row;
    }
    
    .logo {
        width: 200px;
    }
    
    .text {
        font-size: 18px;
    }
    
    .subtext {
        font-size: 14px;
    }
    
    .q-logo {
        width: 80px;
        top: calc(50vh - 200px);
    }
    
    .line {
        height: 180px;
    }
    
    .invite-text {
        top: calc(50vh + 90px + 20px);
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .email-signup {
        top: calc(50vh + 90px + 50px);
    }
    
    .email-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .email-input {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .left-section {
        position: absolute;
        left: 50px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .right-section {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        width: min(100px, 20vw);
        height: auto;
    }
    
    .text {
        font-size: 14px;
    }
    
    .subtext {
        font-size: 12px;
    }
    
    .q-logo {
        width: 60px;
        top: calc(50vh - 150px);
    }
    
    .line {
        height: 120px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .invite-text {
        top: calc(50vh + 60px + 15px);
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .email-signup {
        top: calc(50vh + 60px + 40px);
        padding: 0 20px;
    }
    
    .email-input {
        width: 180px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Form message styling */
.form-message {
    position: absolute;
    top: calc(50vh + var(--distance-from-pipe) + 60px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    max-width: 300px;
    z-index: 1000;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
    border: 1px solid #f44336;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive form messages */
@media (max-width: 768px) {
    .form-message {
        top: calc(50vh + 90px + 80px);
        font-size: 12px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .form-message {
        top: calc(50vh + 60px + 70px);
        font-size: 11px;
        max-width: 200px;
        padding: 8px 16px;
    }
}
